Function at 0x491560
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
push esi
push edi
mov edi, dword [0x65b33c]
lea eax, [esp + 0x7c]
push eax
mov esi, ecx
call edi
lea ecx, [esp + 0xc]
push ecx
call edi
cmp dword [esi + 0x2ac], 0
je 0x4917d9
cmp dword [esi + 0x2b8], 0
je 0x4917d9
cmp dword [esi + 0x2bc], 0
je 0x4917d9
cmp dword [esi + 0x2c0], 0
je 0x4917d9
mov eax, dword [esi + 0x2b0]
mov edi, dword [esp + 0xc0]
cmp eax, edi
jae 0x4915c5
mov edi, eax
lea edx, [esp + 0x1c]
push 0x80
push edx
call fcn.0050cd20
add esp, 8
test edi, edi
jbe 0x4917c9
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edi
jmp 0x4915f0
mov eax, dword [esi + 0x2ac]
add eax, ebp
cmp dword [eax + 0x24], 0
jne 0x4917b9
movzx ecx, word [eax]
test cx, cx
je 0x4917b9
mov edx, 0xffff
cmp cx, dx
je 0x4917b9
cmp dword [eax + 0x18], 0
je 0x49162a
mov edi, dword [esi + 0x2c0]
jmp 0x491630
mov edi, dword [esi + 0x2bc]
mov ecx, edi
call fcn.0054ca10
mov ecx, eax
call fcn.005e2040
mov ebx, eax
mov eax, dword [esi + 0x2ac]
movzx ecx, byte [eax + ebp + 6]
movzx edx, byte [eax + ebp + 5]
add eax, ebp
movzx eax, byte [eax + 4]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0054c9b0
movzx ecx, byte [esi + 0x75a]
movzx edx, byte [esi + 0x759]
movzx eax, byte [esi + 0x758]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0054c9d0
mov ecx, dword [esi + 0x2ac]
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea eax, [ecx + ebp]
mov ecx, dword [eax + 0x18]
push 0
push ecx
lea ecx, [esi + 0x748]
push ecx
mov ecx, dword [eax + 0x14]
movzx eax, word [eax]
sub ecx, 2
push ecx
push eax
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call edx
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00440840
mov ecx, dword [esi + 0x2b8]
call fcn.005673b0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x2b8]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x30], eax
call fcn.00541130
mov eax, dword [esi + 0x2ac]
mov edx, dword [eax + ebp + 8]
mov ecx, dword [esp + 0x14]
add edx, ecx
add eax, ebp
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
sub edx, ecx
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x2b8]
mov dword [esp + 0x3c], edx
call fcn.00541150
mov ecx, dword [esi + 0x2b8]
mov dword [esp + 0x24], eax
call fcn.0052a210
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.005673b0
mov dword [esp + 0x50], eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.00541130
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], ecx
mov ecx, ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.00541150
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.0052a210
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0xff
call fcn.00558170
mov eax, dword [esi + 0x2ac]
add esp, 4
mov dword [eax + ebp + 0x24], 1
add ebp, 0x28
sub dword [esp + 0x10], 1
jne 0x4915f0
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xb4
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0xb4
ret 4