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

Disassembly:
push 0xffffffffffffffff
push 0x4518b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c0
push ebx
push ebp
push esi
push edi
push 0xa
lea ecx, [esp + 0x40]
call fcn.0043fef8
xor ebx, ebx
push 0xa
lea ecx, [esp + 0x5c]
mov dword [esp + 0x3dc], ebx
call fcn.0043fef8
mov eax, dword [0x4789c0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x3dc], 7
call fcn.0040e0c0
mov byte [esp + 0x3d8], 8
call fcn.0044e9c1
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x74]
push eax
push 0x475384
push 0x1004
push 0x475380
push ebx
push 1
lea ecx, [esp + 0xec]
call fcn.0043f20a
mov byte [esp + 0x3d8], 9
call fcn.0044e9c1
mov ecx, dword [eax + 4]
call fcn.004457ef
mov byte [esp + 0x3d8], 0xa
call dword [0x454368]
mov edi, dword [esp + 0x3e0]
mov ecx, dword [esp + 0x3e4]
mov ebp, eax
lea edx, [esp + 0x18]
mov eax, dword [edi + 8]
lea esi, [ecx + 0x1134]
push eax
push edx
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.00411a30
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3dc], 0xb
call fcn.004411aa
lea ecx, [esp + 0x18]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov eax, dword [edi + 0x50]
mov ecx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411a30
mov byte [esp + 0x3d8], 0xc
push eax
lea ecx, [esp + 0x30]
call fcn.004411aa
lea ecx, [esp + 0x18]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
lea ecx, [esp + 0x3c]
call fcn.0043ff37
push 0x47537c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebp
call fcn.004411fa
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0043ff37
lea ecx, [esp + 0x3c]
call fcn.0043ff37
lea ecx, [esp + 0x58]
push 0x3b
push ecx
push ecx
lea edx, [edi + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00440e32
call fcn.00404410
mov esi, dword [esp + 0x68]
add esp, 0xc
test esi, esi
je 0x405755
mov bl, 0xd
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x34]
push eax
call fcn.004411aa
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00411a30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], bl
call fcn.004411aa
lea ecx, [esp + 0x20]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40571a
push 0x475230
lea ecx, [esp + 0x14]
call fcn.0044144d
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.00441489
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.0042f865
add esp, 8
test eax, eax
jne 0x405749
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call fcn.00440000
test esi, esi
jne 0x4056b8
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x4057c7
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4057c7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4057c7
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.004411aa
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x4057bb
mov edx, dword [esp + 0x10]
push edx
call fcn.00404550
mov ecx, dword [edi + 0x74]
add esp, 4
test ecx, ecx
je 0x4057c3
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4057c3
mov edx, ecx
mov ecx, dword [ecx]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 4]
jne 0x4057b5
mov dword [esp + 0x14], 1
test ecx, ecx
jne 0x405799
jmp 0x4057c3
mov dword [esp + 0x14], 1
test esi, esi
jne 0x405765
test ebp, ebp
je 0x40590c
mov ebp, dword [0x45436c]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405ba5
test byte [esp + 0x18], 1
je 0x4058ec
cmp ebx, 2
jl 0x4058ec
mov al, bl
lea ecx, [esp + 0x28]
add al, 0x41
push eax
push 0
call fcn.004415a5
lea ecx, [esp + 0x28]
push 0x5c
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0043ec01
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004410bd
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x405832
cmp esi, 3
je 0x40584e
cmp eax, 2
je 0x40586a
cmp eax, 1
jne 0x4058ec
cmp esi, 3
je 0x40584e
cmp esi, 4
jne 0x4058ec
cmp eax, 2
je 0x40586a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
call fcn.00404670
add esp, 0xc
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x4058ec
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4058ec
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4058e4
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.004411aa
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x4058d0
mov eax, dword [esp + 0x10]
push eax
call fcn.00404550
mov ecx, dword [edi + 0x74]
add esp, 4
test ecx, ecx
je 0x4058d8
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4058d8
mov edx, ecx
mov ecx, dword [ecx]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 4]
jne 0x4058ca
mov dword [esp + 0x14], 1
test ecx, ecx
jne 0x4058ae
jmp 0x4058d8
mov dword [esp + 0x14], 1
test esi, esi
jne 0x40587a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4058ec
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
shr edx, 1
mov dword [esp + 0x18], edx
inc ebx
call fcn.0043ff37
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4057d5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405ba5
mov eax, dword [edi + 0x68]
test eax, eax
je 0x405a7b
lea ecx, [edi + 0xa4]
push ecx
lea ecx, [esp + 0xd4]
call fcn.004411aa
lea ecx, [esp + 0x74]
call fcn.00441b84
mov ecx, dword [edi + 0x6c]
cmp eax, 1
mov dword [esp + 0x160], ecx
jne 0x405a7b
mov ebp, dword [0x454370]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405ba5
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x2cc]
push edx
push eax
call ebp
lea ecx, [esp + 0x2cc]
mov dword [esp + 0x14c], ecx
lea ecx, [esp + 0xd4]
call fcn.0043f36c
cmp eax, 1
jne 0x405a69
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xd8]
call fcn.0043f557
mov eax, dword [eax]
push esi
push eax
call fcn.0042f58b
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call fcn.004410bd
test bl, bl
je 0x405958
lea eax, [esp + 0x20]
lea ecx, [esp + 0xd4]
push eax
call fcn.0043f447
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 0xe
call fcn.004411aa
lea ecx, [esp + 0x20]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.0042f865
add esp, 8
test eax, eax
jne 0x405958
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x405a5c
mov edx, dword [esp + 0x10]
push edx
call fcn.00404550
mov ecx, dword [edi + 0x74]
add esp, 4
test ecx, ecx
je 0x405958
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x405958
mov edx, ecx
mov ecx, dword [ecx]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 4]
jne 0x405a53
mov dword [esp + 0x14], 1
test ecx, ecx
jne 0x405a33
jmp 0x405958
mov dword [esp + 0x14], 1
jmp 0x405958
lea ecx, [esp + 0x74]
call fcn.00441b84
cmp eax, 1
je 0x405958
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 0x4c]
push edx
mov ecx, dword [esp + 0x34]
push eax
call fcn.00411980
lea ecx, [esp + 0x58]
call fcn.0043ff37
lea ecx, [esp + 0x3c]
call fcn.0043ff37
mov byte [esp + 0x3d8], 9
call fcn.0044e9c1
mov ecx, dword [eax + 4]
call fcn.00445804
lea ecx, [esp + 0x180]
mov byte [esp + 0x3d8], 0x12
call fcn.004410bd
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3d8], 8
call fcn.004417c5
lea ecx, [esp + 0xd0]
mov byte [esp + 0x3d8], 0x13
call fcn.004410bd
lea ecx, [esp + 0x74]
mov byte [esp + 0x3d8], 7
call fcn.004417c5
lea ecx, [esp + 0x28]
mov byte [esp + 0x3d8], 6
call fcn.004410bd
lea ecx, [esp + 0x34]
mov byte [esp + 0x3d8], 5
call fcn.004410bd
lea ecx, [esp + 0x38]
mov byte [esp + 0x3d8], 4
call fcn.004410bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x3d8], 3
call fcn.004410bd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3d8], 2
call fcn.004410bd
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 1
call fcn.004410bd
lea ecx, [esp + 0x58]
mov byte [esp + 0x3d8], 0
call fcn.0043ff6c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.0043ff6c
mov ecx, dword [esp + 0x3d0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3cc
ret
mov eax, dword [edi + 0x64]
dec eax
cmp eax, 3
ja case.default.0x405bb2
jmp dword [eax*4 + 0x405cb4]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00440e32
lea ecx, [esp + 0x20]
push ecx
call fcn.00404820
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 0xf
call fcn.004411aa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
push ecx
jmp 0x405a83
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00440e32
lea eax, [esp + 0x24]
push eax
call fcn.004048e0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 0x10
call fcn.004411aa
lea ecx, [esp + 0x20]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
push ecx
jmp 0x405a83
push 0x475374
lea ecx, [esp + 0x14]
call fcn.004411fa
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
push ecx
jmp 0x405a83
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00405d70
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 0x11
call fcn.004411aa
lea ecx, [esp + 0x18]
mov byte [esp + 0x3d8], 0xa
call fcn.004410bd
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
push ecx
jmp 0x405a83