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

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 8]
xor ebx, ebx
mov dword [esi + 0x7c], edx
push edi
lea edi, [esi + 0x24]
push ebx
mov ecx, edi
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebp
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
call fcn.0040fab0
push ebx
lea ecx, [esi + 0x34]
call fcn.00410960
push ebx
lea ecx, [esi + 0x44]
call fcn.004109d0
push ebx
lea ecx, [esi + 0x54]
call fcn.00410a40
push ebx
lea ecx, [esi + 0x64]
call fcn.00410ab0
mov ebx, 3
mov ecx, esi
call fcn.00410740
sub ebx, 1
jne 0x40fe41
push ebp
mov ecx, esi
call fcn.004107f0
push ebx
push ebx
mov ecx, edi
mov dword [esi], eax
call fcn.004105e0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esi + 8]
add eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x2c]
push ebx
push eax
mov ecx, edi
mov dword [esi + 0x10], edx
call fcn.004105e0
xor ebp, ebp
cmp dword [esi + 0x4c], ebp
jle 0x40fed7
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + ebp*4]
lea eax, [ecx + ebp*4]
mov ecx, dword [edx + 8]
mov edi, dword [ecx]
mov ebx, dword [ecx + 8]
mov ecx, dword [esi + 0x10]
lea edx, [ecx + 1]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x28]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
cmp dword [edi + 4], 0
jg 0x40fed1
lea ecx, [edi + 0xc]
push ecx
mov ecx, esi
call fcn.004106d0
test eax, eax
jl 0x40fec2
mov dword [edi + 4], eax
mov dword [ebx + 4], eax
jmp 0x40fed1
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [edi + 4], eax
mov edx, dword [esi + 8]
mov dword [ebx + 4], edx
inc ebp
cmp ebp, dword [esi + 0x4c]
jl 0x40fe83
mov edx, 1
cmp dword [esi + 0x10], edx
jle 0x40ff02
mov eax, dword [esi + 0x28]
add eax, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, dword [esi + 8]
jle 0x40fef9
mov dword [esi + 8], ecx
inc edx
add eax, 4
cmp edx, dword [esi + 0x10]
jl 0x40fee7
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
mov dword [esp + 0x14], ebx
jle 0x40ff8c
lea ecx, [ecx]
mov edx, dword [esi + 0x38]
mov eax, dword [edx + ebx*4]
cmp dword [eax + 8], 0xfffffffd
lea edi, [edx + ebx*4]
jne 0x40ff31
mov ecx, eax
add ecx, 0xc
push ecx
mov ecx, esi
call fcn.004106d0
mov edx, dword [edi]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x38]
mov edi, dword [eax + ebx*4]
mov edx, dword [edi + 8]
test edx, edx
jl 0x40ff82
cmp edx, dword [esi + 8]
jg 0x40ff82
test edx, edx
jne 0x40ff4e
mov ecx, dword [esi]
mov dword [edi + 4], ecx
jmp 0x40ff82
mov eax, 1
cmp dword [esi + 0x2c], eax
jle 0x40ff82
mov ebx, dword [esi + 0x28]
lea ecx, [ebx + 4]
mov edi, edi
mov ebp, dword [ecx]
mov ebp, dword [ebp + 8]
mov ebp, dword [ebp]
cmp edx, dword [ebp + 4]
je 0x40ff78
inc eax
add ecx, 4
cmp eax, dword [esi + 0x2c]
jl 0x40ff60
jmp 0x40ff7e
mov edx, dword [ebx + eax*4]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x14]
inc ebx
cmp ebx, dword [esi + 0x3c]
mov dword [esp + 0x14], ebx
jl 0x40ff10
xor edi, edi
cmp dword [esi + 0x5c], edi
jle 0x40ffb2
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + edi*4]
lea ebx, [eax + edi*4]
add ecx, 0x10
push ecx
mov ecx, esi
call fcn.004106d0
mov edx, dword [ebx]
inc edi
mov dword [edx + 4], eax
cmp edi, dword [esi + 0x5c]
jl 0x40ff93
xor ebp, ebp
xor ebx, ebx
cmp dword [esi + 0x6c], ebp
jle 0x40fff5
jmp 0x40ffc0
mov eax, dword [esi + 0x68]
lea edi, [ebx*4]
add eax, edi
mov eax, dword [eax]
add eax, 8
push eax
mov ecx, esi
call fcn.004106d0
cmp eax, ebp
jl 0x40ffef
mov ecx, dword [esi + 0x68]
mov edx, dword [ecx + edi]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + edi]
mov dword [ecx + 0x18], ebp
inc ebx
cmp ebx, dword [esi + 0x6c]
jl 0x40ffc0
mov eax, dword [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 8