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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc8
lea esi, [esp + 0x70]
mov ebx, ecx
mov ecx, esi
push 0x40
push dword [esp + 0xe0]
call fcn.00406fbb
pop eax
pop ecx
mov dword [esi + 0x28], 2
push 0xb
pop ecx
lea eax, [esp + 0x9c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0040ca7f
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x409b07
mov esi, eax
mov edi, edx
call fcn.004522fa
mov ebx, eax
lea ecx, [esp + 0x20]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [ecx], ebx
mov dword [ecx + 4], 4
mov dword [ecx + 8], 1
push 0xb
pop ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
push 2
pop ebp
mov dword [esp], 0
lea ecx, [esp + 0x44]
call fcn.0040ca7f
test eax, eax
je 0x409a3b
lea ecx, [ebp - 1]
mov esi, eax
mov edi, edx
cmp ecx, dword [esp + 0x24]
jne 0x409a28
lea ecx, [esp + 0x20]
call fcn.00452317
mov ebx, dword [esp + 0x20]
add dword [esp], 0xfffffff8
mov dword [ebx + ebp*8 - 8], esi
mov dword [ebx + ebp*8 - 4], edi
mov dword [esp + 0x28], ebp
inc ebp
jmp 0x409a01
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
sub edi, dword [esp]
cmp ebp, 3
jne 0x409b1b
mov edx, dword [esi + ebp*8 - 0x10]
mov eax, esi
lea esi, [esp + 0x70]
mov dword [esp + 8], edi
mov ecx, esi
push 0x3a
push dword [eax + ebp*8 - 0xc]
call fcn.00406fbb
pop eax
pop ecx
mov dword [esi + 0x28], 2
push 0xb
pop ecx
lea eax, [esp + 0x9c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0040ca5c
test eax, eax
je 0x409b90
mov esi, eax
mov edi, edx
call fcn.004522fa
mov ebp, eax
lea ecx, [esp + 0x20]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [ecx], ebp
mov dword [ecx + 4], 4
mov dword [ecx + 8], 1
push 0xb
pop ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
push 2
pop ebx
lea ecx, [esp + 0x44]
call fcn.0040ca5c
test eax, eax
je 0x409b27
lea ecx, [ebx - 1]
mov esi, eax
mov edi, edx
cmp ecx, dword [esp + 0x24]
jne 0x409af8
lea ecx, [esp + 0x20]
call fcn.00452317
mov ebp, dword [esp + 0x20]
mov dword [ebp + ebx*8 - 8], esi
mov dword [ebp + ebx*8 - 4], edi
mov dword [esp + 0x28], ebx
inc ebx
jmp 0x409ad1
push 4
pop esi
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x18], 0
jmp 0x409c5f
add edi, 8
xor ebp, ebp
xor ecx, ecx
jmp 0x409bbb
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp ebx, 3
sete bl
jne 0x409b9c
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x10], edx
mov ecx, edi
mov dword [esp], eax
call fcn.00445c54
mov ebp, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0xc], edi
push edi
push dword [esp + 4]
push eax
call fcn.004ba8e0
add esp, 0xc
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, edi
mov dword [esp + 4], eax
call fcn.00445c54
mov dword [esp], edx
mov dword [esp + 0x30], edi
push edi
push dword [esp + 8]
mov edi, eax
push eax
call fcn.004ba8e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x409b9f
push 0x28
pop ebp
xor ebx, ebx
push 4
pop esi
xor edx, edx
jmp 0x409b9f
push 0x28
pop ebp
mov ecx, esi
call fcn.004063ec
test bl, bl
je 0x409ca0
mov ecx, edi
mov esi, dword [esp + 0x14]
mov edx, dword [esp]
mov edi, dword [esp + 8]
cmp edi, esi
mov dword [esp], edx
je 0x409c5f
mov edx, dword [edi - 8]
lea esi, [esp + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, esi
push 0x3a
push dword [edi - 4]
call fcn.00406fbb
pop eax
pop ecx
mov ecx, esi
call fcn.00406fe2
test eax, eax
mov dword [esp + 8], ebp
je 0x409cc0
mov esi, eax
mov edi, edx
call fcn.004522fa
mov ebp, eax
lea ecx, [esp + 0x70]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [ecx], ebp
mov dword [ecx + 4], 4
mov dword [ecx + 8], 1
push 0xa
pop ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x9c]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
inc ebx
lea ecx, [esp + 0x44]
call fcn.00406fe2
test eax, eax
je 0x409c64
cmp ebx, dword [esp + 0x74]
mov esi, eax
mov edi, edx
jne 0x409c50
lea ecx, [esp + 0x70]
call fcn.00452317
mov ebp, dword [esp + 0x70]
mov dword [ebp + ebx*8], esi
mov dword [ebp + ebx*8 + 4], edi
inc ebx
mov dword [esp + 0x78], ebx
jmp 0x409c2c
jmp 0x409cfc
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
test ebx, ebx
je 0x409cc5
mov ebp, dword [esi]
mov edi, dword [esi + 4]
lea eax, [esp + 0x44]
mov dword [esp + 0x2c], edx
mov byte [esp + 0x44], 0x27
push eax
call fcn.00405950
pop eax
mov ecx, ebp
mov edx, edi
call fcn.004050bd
test al, al
je 0x409d2b
mov edx, dword [esp + 0x2c]
jmp 0x409cdd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
and dword [eax], 0
jmp 0x409dd7
push 4
pop esi
xor edx, edx
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp + 0x30], ecx
mov ecx, esi
call fcn.004063ec
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], 0x27
mov dword [eax + 8], edx
mov edx, dword [esp]
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
and dword [eax], 0
call fcn.0040644e
mov edx, dword [esp + 0x34]
mov ecx, ebp
call fcn.0040644e
jmp 0x409ddb
cmp ebx, 1
jne 0x409d34
xor ebx, ebx
jmp 0x409d3e
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x38], eax
mov ecx, edi
call fcn.00445c54
mov dword [esp + 0x3c], edx
mov dword [esp + 4], edi
push edi
push ebp
mov dword [esp + 0x48], eax
push eax
call fcn.004ba8e0
add esp, 0xc
test ebx, ebx
je 0x409d83
lea ebp, [esp + 0x44]
mov edx, ebx
mov ecx, ebp
push dword [esp + 0x38]
call fcn.0042e6f0
pop eax
cmp byte [ebp], 0
mov edi, 0x1f90
jne 0x409d88
mov edi, dword [esp + 0x48]
jmp 0x409d88
mov edi, 0x1f90
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 8]
mov ecx, esi
call fcn.004063ec
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x10], ebp
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov edx, dword [esp]
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [ebx], ecx
mov ecx, dword [esp + 4]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.004063ec
add esp, 0xc8
pop esi
pop edi
pop ebx
pop ebp
ret