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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x3c]
push edi
lea edx, [ebp - 0x20]
mov dword [ebp - 0xc], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 8], 0
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x40efcd
mov ecx, dword [ebp - 0x20]
or ecx, dword [ebp - 0x1c]
je 0x40efcd
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov edi, dword [ebx + 0xa0]
mov esi, dword [ebx + 0x3c]
inc eax
push eax
push edi
call fcn.0040d9a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40efcd
cmp byte [edi], al
je 0x40ee59
lea ecx, [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x20]
push edi
push eax
call edx
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40efcd
cmp dword [ebp - 0xc], 0
je 0x40efcd
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
push ecx
lea edi, [ebx + 0x48]
push eax
lea ecx, [ebp - 8]
mov edx, ebx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x10], eax
call fcn.0040de20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40efbe
cmp dword [ebp - 4], 0xffffffff
jne 0x40eec8
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
xor eax, eax
sub ecx, edx
sbb esi, eax
mov eax, dword [ebx + 0x84]
add eax, 8
cdq
push edx
push eax
push esi
push ecx
call fcn.00502d00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ef0e
cmp dword [ebp + 8], 0
jne 0x40ef0e
mov eax, dword [ebx + 0x78]
mov esi, dword [edi]
mov ecx, dword [ebx + 0x54]
mov edi, dword [edi + 4]
xor edx, edx
add eax, dword [ebx + 0x50]
adc ecx, edx
cmp eax, esi
jne 0x40ef0e
cmp ecx, edi
jne 0x40ef0e
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebp - 0x20]
add eax, 8
cdq
sub ecx, esi
mov esi, dword [ebp - 0x1c]
push edx
push eax
sbb esi, edi
push esi
push ecx
call fcn.00502d00
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x48]
lea edi, [ebx + 0x48]
xor ecx, ecx
cmp edx, eax
jne 0x40ef42
mov eax, dword [edi + 4]
cmp eax, ecx
jne 0x40ef42
mov ecx, dword [ebp - 8]
push ecx
mov esi, ebx
call fcn.0040ecf0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40efcd
mov edx, dword [ebp - 8]
mov dword [ebx + 0x18], edx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jbe 0x40ef97
cmp dword [ebp - 0x10], 0
je 0x40ef63
mov esi, ebx
call fcn.0040e250
mov dword [ebp - 0x10], 0
push 0
push 1
push 0
push edi
push ebx
call fcn.0040e780
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40ef87
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 4]
jb 0x40ef4f
jmp 0x40ef97
cmp esi, 0x65
jne 0x40efc3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
lea ecx, [ebp - 8]
mov edx, ebx
call fcn.0040de20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ee9d
cmp esi, 0x65
jmp 0x40efc9
cmp esi, 0x20a
jne 0x40efcd
xor esi, esi
mov al, byte [ebx + 0xb]
mov byte [ebx + 0x12], al
test esi, esi
jne 0x40f06f
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov edi, dword [ebx + 0xa0]
mov esi, dword [ebx + 0x3c]
inc edx
push edx
push edi
call fcn.0040d9a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f06f
cmp byte [ebx + 8], al
jne 0x40f01a
cmp byte [ebx + 0xe], 4
jb 0x40f01a
movzx ecx, byte [ebx + 0xa]
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
add esp, 8
mov esi, eax
test esi, esi
jne 0x40f06f
cmp byte [ebx + 8], 0
jne 0x40f043
cmp byte [ebx + 0xe], 4
jb 0x40f043
movzx ecx, byte [ebx + 0xa]
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f06f
xor ecx, ecx
cmp byte [edi], cl
setne cl
push ecx
call fcn.0040e4e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f06f
cmp byte [edi], al
je 0x40f06f
cmp dword [ebp - 0xc], eax
je 0x40f06f
push edi
mov eax, ebx
call fcn.0040eaa0
add esp, 4
mov esi, eax
cmp byte [ebx + 0xb], 0
jne 0x40f091
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
mov ecx, dword [edx + 0x2c]
test ecx, ecx
je 0x40f089
push eax
call ecx
add esp, 4
jmp 0x40f08e
mov eax, 0x200
mov dword [ebx + 0x78], eax
cmp dword [ebx + 0x78], 0x20
jae 0x40f09e
mov dword [ebx + 0x78], 0x200
mov eax, 0x10000
cmp dword [ebx + 0x78], eax
jbe 0x40f0ab
mov dword [ebx + 0x78], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret