Function at 0x411271
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
jne 0x411287
pop esi
mov eax, 0xffffff9a
pop ebx
ret 0xc
cmp dword [esi + 0x2c], ebx
jne 0x411296
pop esi
mov eax, 0xffffff9a
pop ebx
ret 0xc
mov eax, dword [esi + 0x80]
push ebp
cmp eax, 8
push edi
mov dword [esi + 0x34], ebx
jne 0x411303
cmp dword [esi + 0x84], ebx
jne 0x411303
lea edi, [esi + 0x6c]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4112dd
mov eax, dword [edi]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
lea ebx, [esi + 0x88]
push eax
push ebx
push ecx
push edx
call dword [esi + 8]
mov dword [edi], 0
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], ebx
mov ebp, dword [esi + 0x44]
lea eax, [esi + 0x30]
push 4
push eax
call fcn.004131b0
mov ecx, dword [edi]
mov ebx, eax
mov eax, dword [esi + 0x44]
sub eax, ebp
add ecx, eax
test ebx, ebx
mov dword [edi], ecx
je 0x4112b1
cmp ebx, 1
jne 0x411303
xor ebx, ebx
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x411329
test ebx, ebx
jne 0x411329
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x88]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [esi + 8]
cmp eax, dword [esi + 0x6c]
je 0x411329
or ebx, 0xffffffff
cmp dword [esi + 0x80], 8
jne 0x41134e
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x411367
lea ecx, [esi + 0x30]
push ecx
call fcn.00413512
mov ebx, eax
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x411367
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x408c]
mov dword [esp + 0x18], edx
jmp 0x41136b
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x74]
mov ebp, dword [esi + 0x44]
push 4
add eax, 0x10
push edi
push eax
call fcn.0041109e
mov ecx, dword [esi + 0x74]
push 4
add ecx, 0x14
push ebp
push ecx
call fcn.0041109e
mov eax, dword [esi + 0x5c]
add esp, 0x18
cmp eax, 1
jne 0x4113aa
mov edx, dword [esi + 0x74]
push 2
add edx, 0x24
push 1
push edx
call fcn.0041109e
add esp, 0xc
mov ecx, dword [esi + 0x74]
mov eax, dword [esp + 0x18]
push 4
add ecx, 0x18
push eax
push ecx
call fcn.0041109e
add esp, 0xc
test ebx, ebx
jne 0x4113da
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
push edx
lea ecx, [esi + 0x24]
push eax
push ecx
call fcn.00411493
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4113e8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x411476
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [esi + 0xc]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x20]
add ecx, 0xe
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1c]
push ebx
push ecx
push edx
push eax
call dword [esi + 0x10]
test eax, eax
je 0x41141b
or ebx, 0xffffffff
jmp 0x41145d
mov ecx, dword [esi + 0x20]
push 4
push edi
push ecx
push esi
call fcn.00411065
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41145d
mov edx, dword [esi + 0x20]
push 4
push ebp
push edx
push esi
call fcn.00411065
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41145d
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
push 4
push eax
push ecx
push esi
call fcn.00411065
add esp, 0x10
mov ebx, eax
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0
push edx
push eax
push ecx
call dword [esi + 0x10]
test eax, eax
je 0x411476
or ebx, 0xffffffff
mov eax, dword [esi + 0x4094]
pop edi
inc eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x4094], eax
pop ebp
mov eax, ebx
pop esi
pop ebx
ret 0xc