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

Disassembly:
push 0xffffffffffffffff
push 0x479a39
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x49f864]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49f864]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov esi, dword [esp + 0x194]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
call fcn.0040ddd0
mov edi, dword [esp + 0x198]
push 0x100
lea eax, [esp + 0x80]
push 0
push eax
mov dword [esp + 0x198], 0
mov dword [esp + 0x188], edi
call fcn.00449bf0
push esi
lea ecx, [esp + 0x8c]
push 0x100
push ecx
call fcn.00449e90
add esp, 0x18
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push esi
call dword [0x47a0f0]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x40ca06
mov ebp, dword [0x47a0f4]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x10
lea eax, [esp + 0x54]
push eax
push esi
call ebp
cmp dword [esp + 0x4c], 0
je 0x40ca1d
push esi
call dword [0x47a0f8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], ebx
call fcn.0040dfd0
xor eax, eax
jmp 0x40cd1e
cmp dword [esp + 0x50], edi
jbe 0x40c9ff
push 1
push 0
lea ecx, [edi*4]
mov edi, dword [0x47a0d8]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x30]
push eax
push esi
call ebp
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40c9ff
mov ecx, dword [esp + 0x50]
push 0
push 0
lea edx, [eax + ecx*4 + 0x10]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0x24
lea ecx, [esp + 0x64]
push ecx
push esi
call ebp
mov eax, dword [esp + 0x48]
sub eax, 1
je 0x40cbeb
sub eax, 1
jne 0x40cd09
push eax
lea edx, [esp + 0x1c]
push edx
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00449d60
mov edi, eax
add esp, 4
test edi, edi
je 0x40c9ff
mov eax, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push esi
call ebp
push esi
call dword [0x47a0f8]
mov esi, dword [esp + 0x34]
imul esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 0
push ecx
lea edx, [esi*4]
push edx
push edi
lea ecx, [esp + 0x24]
call fcn.0040dde0
push edi
call fcn.00449c70
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0040dfc0
mov ebp, eax
lea eax, [esi + esi*2]
push eax
mov dword [esp + 0x20], ebp
xor edi, edi
call fcn.00449d60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40cb60
test esi, esi
jbe 0x40cb42
lea eax, [ebp + 1]
lea ecx, [ebx + 1]
mov ebp, esi
movzx edx, byte [eax + 1]
mov byte [ecx + 1], dl
movzx edx, byte [eax]
mov byte [ecx], dl
movzx edx, byte [eax - 1]
mov byte [ecx - 1], dl
add eax, 4
add ecx, 3
sub ebp, 1
jne 0x40cb20
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x38], edi
je 0x40cb84
push esi
call fcn.00449d60
mov edi, eax
add esp, 4
test edi, edi
jne 0x40cb6e
push ebx
call fcn.00449c70
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0040dfa0
jmp 0x40cc3c
xor eax, eax
test esi, esi
jbe 0x40cb84
lea ecx, [ebp + 3]
mov dl, byte [ecx]
mov byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x40cb77
lea ecx, [esp + 0x14]
call fcn.0040dfa0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1a0]
push edi
push ebx
push eax
mov eax, dword [esp + 0x1a8]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0040c7d0
push ebx
test eax, eax
jne 0x40cbd6
call fcn.00449c70
add esp, 4
test edi, edi
je 0x40cc3c
push edi
call fcn.00449c70
add esp, 4
jmp 0x40cc3c
call fcn.00449c70
add esp, 4
test edi, edi
je 0x40cd06
jmp 0x40ccfd
push 0xc
call fcn.00449d60
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x18c], 1
test eax, eax
je 0x40cc10
mov ecx, eax
call fcn.0040d5a0
mov edi, eax
jmp 0x40cc12
xor edi, edi
mov byte [esp + 0x18c], 0
test edi, edi
je 0x40c9ff
mov edx, dword [esp + 0x78]
push edx
call fcn.00449d60
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40cc57
push esi
call dword [0x47a0f8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], 0xffffffff
call fcn.0040dfd0
xor eax, eax
jmp 0x40cd1e
mov ecx, dword [esp + 0x78]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push esi
call ebp
push esi
call dword [0x47a0f8]
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x3c]
push edx
push eax
push ebx
mov ecx, edi
call fcn.0040d5e0
test eax, eax
jne 0x40cc9f
push ebx
call fcn.00449c70
add esp, 4
mov ecx, edi
call fcn.0040d7c0
push edi
call fcn.00449c70
add esp, 4
jmp 0x40cc3c
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x1a8]
push edx
mov edx, dword [esp + 0x1a8]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.0040c7d0
push ebx
test eax, eax
jne 0x40cce7
call fcn.00449c70
add esp, 4
mov ecx, edi
call fcn.0040d5b0
jmp 0x40cc8d
call fcn.00449c70
add esp, 4
mov ecx, edi
call fcn.0040d5b0
mov ecx, edi
call fcn.0040d7c0
push edi
call fcn.00449c70
add esp, 4
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], ebx
call fcn.0040dfd0
mov eax, 1
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.00449be0
add esp, 0x17c
ret 0x10