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

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
push ecx
lea ecx, [esp + 0xac]
call fcn.0040142c
cmp dword [esp + 0xbc], 0x10
lea ecx, [esp + 0xa8]
mov eax, dword [esp + 0xb8]
cmovae ecx, dword [esp + 0xa8]
add eax, ecx
cmp dword [esp + 0xbc], 0x10
lea ecx, [esp + 0xa8]
cmovae ecx, dword [esp + 0xa8]
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.0040333a
push 0
push ecx
lea ecx, [esp + 0xc8]
call fcn.00405961
xor ebx, ebx
mov dword [esp + 0x14], 0x2f
mov esi, eax
lea ecx, [esp + 0xc0]
inc ebx
lea eax, [esp + 0x14]
push ebx
push esi
push eax
call fcn.0040167c
and dword [esp + 0x88], 0
mov edi, eax
xor eax, eax
mov dword [esp + 0x8c], 7
push 0x41f5ac
mov ecx, 0x47d380
mov word [esp + 0x7c], ax
call fcn.00401601
cmp edi, 0xffffffff
jne 0x403f3a
cmp esi, edi
je 0x404380
mov eax, edi
lea ecx, [esp + 0xc0]
sub eax, esi
xor bh, bh
push eax
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00403098
push eax
lea ecx, [esp + 0x7c]
call fcn.00401fad
xor ebp, ebp
lea ecx, [esp + 0x18]
push 0
inc ebp
push ebp
call fcn.00401720
push ebp
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x84]
call fcn.0040167c
mov esi, eax
cmp esi, 0xffffffff
je 0x40429d
push esi
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x84]
call fcn.00403098
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x84]
call fcn.00403098
push 4
mov edx, 0x4338e4
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push ebp
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x40400b
cmp dword [esp + 0xa0], 0
jbe 0x4044ac
xor eax, eax
inc eax
mov byte [0x47e781], al
mov bh, al
jmp 0x4040d8
push 9
mov edx, 0x4619b0
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push ebp
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x404049
mov byte [0x47e789], 1
mov ecx, 0x47d3c0
jmp 0x404264
push 6
mov edx, 0x43116c
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x404080
mov byte [0x47e788], 1
jmp 0x40403f
push 1
mov edx, 0x42dfac
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x4041f8
cmp dword [esp + 0xa0], 0
jbe 0x4041cb
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x98]
mov ecx, 0x47d3a0
push eax
call fcn.00401a8a
mov bh, 1
test bh, bh
je 0x40427a
and dword [esp + 0x40], 0
xor eax, eax
mov ebp, 0x421418
mov dword [esp + 0x44], 7
push ebp
mov word [esp + 0x34], ax
call fcn.0040b4f5
add eax, dword [esp + 0x5c]
xor ebx, ebx
mov esi, dword [esp + 0x44]
inc ebx
pop ecx
cmp esi, eax
ja 0x40413c
cmp dword [esp + 0x44], eax
je 0x40413c
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00401b0e
test al, al
je 0x40413c
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
mov dword [esp + 0x40], esi
cmovae eax, dword [esp + 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
push ebp
call fcn.0040b4f5
pop ecx
push eax
push ebp
lea ecx, [esp + 0x38]
call fcn.00405d49
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.00405b12
push 0x421414
lea edx, [esp + 0x34]
lea ecx, [esp + 0x64]
call fcn.00405cab
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x98]
push ecx
mov ecx, eax
call fcn.00405b12
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f8b
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, 0x47d380
push eax
call fcn.00405b12
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x38]
call fcn.00401720
jmp 0x40427d
push 7
mov edx, 0x43c544
lea ecx, [esp + 0x1c]
call fcn.004034d9
push eax
mov ecx, 0x47d3a0
call fcn.00401fad
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401720
jmp 0x4040d6
push 1
mov edx, 0x425194
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x40422d
mov ecx, 0x47d340
jmp 0x404264
push 1
mov edx, 0x42f404
lea ecx, [esp + 0x1c]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401720
test bl, bl
je 0x4040d6
mov ecx, 0x47d360
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x98]
push eax
call fcn.00401a8a
jmp 0x4040d8
xor ebx, ebx
inc ebx
push 0
push ebx
lea ecx, [esp + 0x98]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.00401720
jmp 0x40434e
push 8
mov edx, 0x44c980
lea ecx, [esp + 0x64]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x68]
mov bl, al
call fcn.00401720
test bl, bl
je 0x4042d6
xor ebx, ebx
inc ebx
mov byte [0x47e782], bl
jmp 0x40434e
push 6
mov edx, 0x43116c
lea ecx, [esp + 0x64]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x68]
mov bl, al
call fcn.00401720
test bl, bl
je 0x40430f
xor ebx, ebx
inc ebx
mov byte [0x47e788], bl
jmp 0x40434e
push 9
mov edx, 0x4619b0
lea ecx, [esp + 0x64]
call fcn.004034d9
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00405c8f
push 0
push 1
lea ecx, [esp + 0x68]
mov bl, al
call fcn.00401720
movzx ecx, byte [0x47e789]
test bl, bl
push 1
pop ebx
cmovne ecx, ebx
mov byte [0x47e789], cl
push edi
push ecx
lea ecx, [esp + 0xc8]
call fcn.00405961
mov esi, eax
mov dword [esp + 0x14], 0x2f
push ebx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xcc]
call fcn.0040167c
mov edi, eax
jmp 0x403f2d
cmp dword [0x47d350], 0
je 0x4044a4
cmp dword [0x47d370], 0
je 0x4044a4
mov esi, 0x421414
lea ecx, [esp + 0x30]
push esi
push ebx
mov edx, 0x42f404
call fcn.004034d9
push eax
lea ecx, [esp + 0x50]
call fcn.00405cdd
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.00405cab
push 0xffffffffffffffff
push 0
push 0x47d360
mov ecx, eax
call fcn.00405b12
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f8b
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ebp, 0x47d380
push eax
mov ecx, ebp
call fcn.00405b12
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x38]
call fcn.00401720
push esi
push ebx
mov edx, 0x425194
lea ecx, [esp + 0x38]
call fcn.004034d9
push eax
lea ecx, [esp + 0x50]
call fcn.00405cdd
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.00405cab
push 0xffffffffffffffff
push 0
push 0x47d340
mov ecx, eax
call fcn.00405b12
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f8b
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.00405b12
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x38]
call fcn.00401720
jmp 0x4044cc
mov byte [0x47e783], bl
jmp 0x4044cc
xor ebx, ebx
lea ecx, [esp + 0x90]
push 0
inc ebx
push ebx
call fcn.00401720
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.00401720
xor bl, bl
xor eax, eax
lea ecx, [esp + 0x78]
push 0
inc eax
push eax
call fcn.00401720
xor eax, eax
lea ecx, [esp + 0xc0]
push 0
inc eax
push eax
call fcn.00401720
xor eax, eax
lea ecx, [esp + 0xa8]
push 0
inc eax
push eax
call fcn.004015bf
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xcc
ret