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

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push ecx
lea ecx, [esp + 0xac]
call fcn.00401593
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.004035a1
push 0
push ecx
lea ecx, [esp + 0xc8]
call fcn.00407bc9
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.004018f7
and dword [esp + 0xa0], 0
mov edi, eax
xor eax, eax
mov dword [esp + 0xa4], 7
push 0x423f50
mov ecx, 0x46edd0
mov word [esp + 0x94], ax
call fcn.0040187c
cmp edi, 0xffffffff
jne 0x405b90
cmp esi, edi
je 0x406195
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.0040301f
push eax
lea ecx, [esp + 0x94]
call fcn.00407b09
xor ebp, ebp
lea ecx, [esp + 0x18]
push 0
inc ebp
push ebp
call fcn.0040199b
push ebp
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
lea ecx, [esp + 0x9c]
call fcn.004018f7
mov esi, eax
cmp esi, 0xffffffff
je 0x4060a9
push esi
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x9c]
call fcn.0040301f
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x9c]
call fcn.0040301f
push 4
mov edx, 0x4378e4
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push ebp
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405c61
cmp dword [esp + 0x70], 0
jbe 0x4062e2
xor eax, eax
inc eax
mov byte [0x4805b7], al
mov bh, al
jmp 0x405d28
push 9
mov edx, 0x458470
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push ebp
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405c9f
mov byte [0x481277], 1
mov ecx, 0x46ee10
jmp 0x405eb3
push 6
mov edx, 0x43218c
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405cd6
mov byte [0x481276], 1
jmp 0x405c95
push 1
mov edx, 0x42b19c
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405e4b
cmp dword [esp + 0x70], 0
jbe 0x405e1e
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
mov ecx, 0x46edf0
push eax
call fcn.004017f8
mov bh, 1
test bh, bh
je 0x406086
and dword [esp + 0x40], 0
xor eax, eax
mov ebp, 0x423f5c
mov dword [esp + 0x44], 7
push ebp
mov word [esp + 0x34], ax
call fcn.0040e105
add eax, dword [esp + 0x8c]
xor ebx, ebx
mov esi, dword [esp + 0x44]
inc ebx
pop ecx
cmp esi, eax
ja 0x405d8f
cmp dword [esp + 0x44], eax
je 0x405d8f
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00401d74
test al, al
je 0x405d8f
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.0040e105
pop ecx
push eax
push ebp
lea ecx, [esp + 0x38]
call fcn.00401c70
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401bde
push 0x423f58
lea edx, [esp + 0x34]
lea ecx, [esp + 0x4c]
call fcn.00407ec5
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x1c]
call fcn.0040165a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, 0x46edd0
push eax
call fcn.00401bde
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x38]
call fcn.0040199b
jmp 0x406089
push 7
mov edx, 0x44fa04
lea ecx, [esp + 0x1c]
call fcn.00404f88
push eax
mov ecx, 0x46edf0
call fcn.00407b09
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040199b
jmp 0x405d26
push 1
mov edx, 0x427e84
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405e80
mov ecx, 0x46ed90
jmp 0x405eb3
push 1
mov edx, 0x42e744
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405ec6
mov ecx, 0x46edb0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
push eax
call fcn.004017f8
jmp 0x405d28
push 1
mov edx, 0x42fbe4
lea ecx, [esp + 0x1c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x405d26
push 0xe
mov edx, 0x44e050
lea ecx, [esp + 0x1c]
call fcn.00404f88
push 0xffffffffffffffff
push 0
push 0x46eef0
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x10c]
call fcn.0040165a
lea edx, [esp + 0x108]
lea ecx, [esp + 0x30]
call fcn.00405026
push 0
push 1
lea ecx, [esp + 0x110]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040199b
push 6
mov edx, 0x43b524
lea ecx, [esp + 0xf4]
call fcn.00404f88
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x1c]
call fcn.0040165a
push 8
mov edx, 0x441d50
lea ecx, [esp + 0x4c]
call fcn.00404f88
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xdc]
call fcn.00407e81
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x10c]
call fcn.0040165a
push 0x423f54
lea edx, [esp + 0x10c]
lea ecx, [esp + 0x124]
call fcn.00407ec5
mov ecx, eax
call fcn.00407936
push 0
push 1
lea ecx, [esp + 0x128]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0x110]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0xe0]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0xf8]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.0040199b
lea edx, [esp + 0x60]
lea ecx, [esp + 0x30]
call fcn.00407e65
test al, al
je 0x406050
mov byte [0x48174c], 1
jmp 0x406074
push 0x25
mov edx, 0x4674f0
lea ecx, [esp + 0x4c]
call fcn.00404f88
mov ecx, eax
call fcn.00405991
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.0040199b
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.0040199b
jmp 0x405d28
xor ebx, ebx
inc ebx
push 0
push ebx
lea ecx, [esp + 0x68]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x80]
call fcn.0040199b
jmp 0x406163
push 8
mov edx, 0x446260
lea ecx, [esp + 0x4c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x50]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x4060e5
xor ebx, ebx
inc ebx
mov byte [0x481274], bl
jmp 0x406163
push 6
mov edx, 0x43218c
lea ecx, [esp + 0x4c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x50]
mov bl, al
call fcn.0040199b
test bl, bl
je 0x406121
xor ebx, ebx
inc ebx
mov byte [0x481276], bl
jmp 0x406163
push 9
mov edx, 0x458470
lea ecx, [esp + 0x4c]
call fcn.00404f88
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.00407e65
push 0
push 1
lea ecx, [esp + 0x50]
mov bl, al
call fcn.0040199b
movzx ecx, byte [0x481277]
test bl, bl
push 1
pop ebx
cmovne ecx, ebx
mov byte [0x481277], cl
push edi
push ecx
lea ecx, [esp + 0xc8]
call fcn.00407bc9
mov esi, eax
mov dword [esp + 0x14], 0x2f
push ebx
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xcc]
call fcn.004018f7
mov edi, eax
jmp 0x405b83
cmp dword [0x46eda0], 0
je 0x4062da
cmp dword [0x46edc0], 0
je 0x4062da
mov edi, 0x423f58
lea ecx, [esp + 0xd8]
push edi
push ebx
mov edx, 0x42e744
call fcn.00404f88
mov ebp, 0x423f5c
lea ecx, [esp + 0xf4]
push eax
mov edx, ebp
call fcn.00407ef7
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00407ec5
push 0xffffffffffffffff
push 0
push 0x46edb0
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x1c]
call fcn.0040165a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov esi, 0x46edd0
push eax
mov ecx, esi
call fcn.00401bde
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0xf8]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0xe0]
call fcn.0040199b
push edi
push ebx
mov edx, 0x427e84
lea ecx, [esp + 0xe0]
call fcn.00404f88
push eax
mov edx, ebp
lea ecx, [esp + 0xf8]
call fcn.00407ef7
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00407ec5
push 0xffffffffffffffff
push 0
push 0x46ed90
mov ecx, eax
call fcn.00401bde
push eax
lea ecx, [esp + 0x1c]
call fcn.0040165a
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00401bde
push 0
push ebx
lea ecx, [esp + 0x20]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x50]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0xf8]
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0xe0]
call fcn.0040199b
jmp 0x406302
mov byte [0x481275], bl
jmp 0x406302
xor ebx, ebx
lea ecx, [esp + 0x60]
push 0
inc ebx
push ebx
call fcn.0040199b
push 0
push ebx
lea ecx, [esp + 0x80]
call fcn.0040199b
xor bl, bl
xor eax, eax
lea ecx, [esp + 0x90]
push 0
inc eax
push eax
call fcn.0040199b
xor eax, eax
lea ecx, [esp + 0xc0]
push 0
inc eax
push eax
call fcn.0040199b
xor eax, eax
lea ecx, [esp + 0xa8]
push 0
inc eax
push eax
call fcn.0040176d
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x12c
ret