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

Disassembly:
mov eax, 0x1130
call fcn.004f3e00
mov eax, dword [0x551a60]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x5002a4]
push eax
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4054a0
call fcn.004011a0
test eax, eax
jne 0x40547f
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x1130
ret 4
mov ecx, dword [0x551a60]
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4054a0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x1130
ret 4
cmp dword [esi + 0x1c4], ebx
je 0x4054dc
mov edx, dword [esp + 0x1144]
mov eax, dword [edx + 0x28]
push eax
push 2
push 0x74
call fcn.0040b960
add esp, 8
push eax
push 0x2d
call fcn.004012a0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov ebp, dword [esp + 0x1144]
or eax, 0xffffffff
mov dword [esi + 0x68], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x1c4], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x3cf8], eax
mov dword [esi + 0x4554], ebx
mov dword [esi + 0x4558], ebx
mov ecx, dword [ebp + 0x54]
push ebp
mov dword [esi + 0x4550], ecx
call fcn.00408d90
mov eax, dword [ebp]
add esp, 4
add eax, 0xffffff9c
cmp eax, 0x46
ja case.0x405589.103
xor edx, edx
mov dl, byte [eax + 0x406590]
jmp dword [edx*4 + 0x40657c]
mov dword [esi + 0x1c8], 0x64
jmp 0x4055be
mov dword [esi + 0x1c8], 0xc8
jmp 0x4055be
mov dword [esi + 0x1c8], 0x12c
jmp 0x4055be
mov dword [esi + 0x1c8], 0x1f4
lea eax, [esp + 0x28]
mov edi, 0xaa
push ebp
push eax
mov dword [esp + 0x30], edi
call fcn.00404cb0
add esp, 8
test eax, eax
je 0x4055fc
push ebp
push 0x2f
call fcn.00408ac0
add esp, 8
mov dword [esi + 0x1c4], ebx
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
cmp dword [esp + 0x28], edi
je 0x405610
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x75
jmp 0x4057d0
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x4554], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x4558], eax
mov ecx, dword [esp + 0x9e]
mov dword [esi + 0x4548], ecx
mov edx, dword [esp + 0xa2]
mov dword [esi + 0x454c], edx
mov eax, dword [esp + 0x96]
cmp eax, ebx
je 0x405668
mov eax, dword [eax + 4]
mov dword [esi + 0x455c], eax
mov ecx, dword [esp + 0x96]
mov edx, dword [ecx + 8]
mov dword [esi + 0x4560], edx
cmp dword [esp + 0x2c], 0xa
je 0x405690
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x405682
push eax
call dword [0x5002b8]
test eax, eax
jne 0x405690
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x71
jmp 0x4057d0
cmp dword [esp + 0x44], ebx
je 0x4056aa
cmp dword [esp + 0x48], ebx
je 0x4056aa
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x76
jmp 0x4057d0
lea edi, [esi + 0x4ec6]
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x84], ebx
je 0x4056f8
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x4057fb
push eax
call dword [0x5002b8]
cmp eax, 0x41
jg 0x4057fb
mov edx, dword [esp + 0x88]
lea eax, [esi + 0x4ec6]
push edx
push eax
call dword [0x50028c]
mov ecx, dword [esp + 0x94]
xor edx, edx
and ecx, 1
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x4c]
cmp edi, ebx
setne dl
mov dword [esi + 8], edx
mov eax, dword [esp + 0x94]
shr eax, 1
and eax, 1
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x94]
shr ecx, 4
and ecx, 1
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0x94]
shr edx, 5
and edx, 1
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0x94]
shr eax, 7
and eax, 1
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x94]
shr ecx, 8
and ecx, 1
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x94]
shr edx, 0xe
and edx, 1
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x94]
shr eax, 6
and eax, 1
mov dword [esi + 0x3d1c], eax
mov ecx, dword [esp + 0x94]
shr ecx, 0xb
and ecx, 1
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0x94]
shr edx, 0xd
and edx, 1
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x94]
shr eax, 0xc
and eax, 1
mov dword [esi + 0x50], eax
je 0x405806
mov eax, dword [esp + 0x96]
cmp eax, ebx
je 0x4057c7
cmp dword [eax + 4], ebx
jne 0x405806
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x3e
call fcn.0040b960
add esp, 8
push eax
push 0x2f
call fcn.004012a0
add esp, 0xc
mov dword [esi + 0x1c4], ebx
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x77
jmp 0x4057d0
mov ecx, dword [esp + 0xae]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ebx
mov edx, dword [esp + 0xb2]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x88], ebx
mov eax, dword [esp + 0xaa]
cmp eax, ebx
je 0x40586b
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40585e
push eax
call dword [0x5002b8]
test eax, eax
jle 0x40585e
mov eax, dword [esp + 0x38]
push eax
call fcn.00409f10
add esp, 4
test eax, eax
jne 0x405864
cmp dword [esp + 0x3c], ebx
jl 0x40586b
mov dword [esi + 0x44], 1
cmp dword [esi + 0x44], ebx
jne 0x4058b2
cmp dword [esp + 0x2c], 0xb
jne 0x4058b2
mov dword [esi + 0x48], 1
mov dword [esi + 0x78], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4058a5
push eax
call dword [0x5002b8]
test eax, eax
jle 0x4058a5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00409f10
add esp, 4
test eax, eax
jne 0x4058ab
cmp dword [esp + 0x3c], ebx
jl 0x4058b2
mov dword [esi + 0x44], 1
mov eax, dword [esp + 0xa6]
cmp eax, ebx
je 0x4058d8
push 0x12c
lea edx, [esi + 0x94]
push eax
push edx
call dword [0x5002bc]
mov byte [esi + 0x1bf], bl
jmp 0x4058ea
lea eax, [esi + 0x94]
push 0x54b028
push eax
call dword [0x50028c]
lea edi, [esi + 0x1b3c]
push edi
mov dword [esp + 0xd8], edi
call fcn.00406630
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x33c]
push ecx
push eax
call fcn.00409ff0
add esp, 0xc
lea eax, [esi + 0x33c]
lea ecx, [esi + 0x14f42]
push eax
push ecx
call dword [0x50028c]
lea eax, [esi + 0x33c]
lea edx, [esi + 0xb3c]
push eax
push edx
call dword [0x50028c]
cmp dword [esi + 0x4e54], ebx
je 0x40595a
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x40594f
cmp eax, 4
jne 0x40595a
or ecx, 0xffffffff
mov dword [esi + 0x3cf8], ecx
jmp 0x4059a0
call fcn.00402000
test eax, eax
jne 0x40599d
mov dword [esi + 0x1c4], ebx
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x67
call fcn.0040b960
add esp, 8
push eax
push 9
call fcn.004012a0
push edi
call fcn.004066a0
add esp, 0x10
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
lea eax, [edx - 1]
cmp eax, 0xa
ja case.default.0x4059b0
jmp dword [eax*4 + 0x4065d8]
push esi
mov dword [esi + 0x4dee], ebx
call fcn.00402c70
add esp, 4
test eax, eax
jne 0x4059d4
mov dword [esp + 0x10], 5
jmp 0x4059e5
lea eax, [esp + 0x28]
push eax
call fcn.00402320
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.00404cb0
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.00408ac0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x14
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
lea edx, [esp + 0x28]
push edx
call fcn.00403100
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00404cb0
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00408ac0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
push esi
mov dword [esi + 0x4dee], ebx
call fcn.00402c70
add esp, 4
test eax, eax
jne 0x405a80
lea edx, [esp + 0x28]
mov dword [esp + 0x10], 5
push edx
jmp 0x4059ea
lea ecx, [esp + 0x28]
push ecx
call fcn.004024b0
add esp, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x10], eax
push edx
jmp 0x4059ea
lea eax, [esp + 0x28]
push eax
call fcn.00403590
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
push ecx
jmp 0x405b62
cmp dword [esi + 0x4dee], ebx
je 0x405af2
cmp dword [esi + 0x4e14], ecx
jne 0x405af2
push esi
mov dword [esi + 0x4dee], ebx
call fcn.00402c70
add esp, 4
test eax, eax
jne 0x405ae3
mov dword [esp + 0x10], 5
jmp 0x4059e5
lea edx, [esp + 0x28]
push edx
call fcn.00403fa0
jmp 0x4059de
lea eax, [esp + 0x28]
push eax
call fcn.00403fa0
jmp 0x4059de
cmp dword [esi + 0x4dee], ebx
je 0x405b40
cmp dword [esi + 0x4e14], ecx
jne 0x405b40
push esi
mov dword [esi + 0x4dee], ebx
call fcn.00402c70
add esp, 4
test eax, eax
jne 0x405b31
mov dword [esp + 0x10], 5
jmp 0x4059e5
lea edx, [esp + 0x28]
push edx
call fcn.004040c0
jmp 0x4059de
lea eax, [esp + 0x28]
push eax
call fcn.004040c0
jmp 0x4059de
lea edx, [esp + 0x28]
push edx
call fcn.00404350
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.00404cb0
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00408ac0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
cmp dword [esp + 0x54], ebx
jne 0x405c44
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jne 0x405bb1
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x78
jmp 0x40654a
lea eax, [esi + 0x133c]
push ecx
push eax
call fcn.00409ff0
add esp, 8
lea eax, [esi + 0x133c]
push eax
call dword [0x5002b8]
cmp eax, 2
jge 0x405be1
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x6e
jmp 0x40654a
mov al, byte [esi + 0x133d]
cmp al, 0x3a
je 0x405c44
cmp byte [esi + 0x133c], 0x5c
jne 0x405bf8
cmp al, 0x5c
je 0x405c44
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x6f
jmp 0x40654a
cmp dword [esi + 0x44], ebx
jne 0x405c44
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x83
jmp 0x40654a
cmp dword [esi + 0x44], ebx
jne 0x406533
mov eax, dword [esp + 0x96]
cmp eax, ebx
je 0x406533
cmp dword [eax + 4], ebx
je 0x406533
mov dword [esi + 0x4c], 1
cmp dword [esp + 0x80], ebx
je 0x405c59
mov dword [esi + 0x45a4], 0x4000
jmp 0x405c63
mov dword [esi + 0x45a4], 0x8000
cmp dword [esp + 0x54], ebx
jne 0x405ca9
cmp dword [esi + 0x44], ebx
jne 0x405ca9
cmp dword [esi + 0x4c], ebx
jne 0x405ca9
mov edx, dword [esp + 0x40]
lea eax, [esi + 0x45ee]
push edx
push eax
call fcn.00409ff0
lea eax, [esi + 0x45ee]
push eax
call fcn.0040bb30
add esp, 0xc
test eax, eax
jne 0x405ca9
lea eax, [esi + 0x45ee]
push 0x54809c
push eax
call dword [0x5002b4]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x4540], eax
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x4544], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 0x45e6], edx
mov eax, dword [esp + 0x68]
mov dword [esi + 0x45ea], eax
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x406065
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov eax, 3
lea ecx, [esi + 0x4e58]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esp + 0x18], eax
mov ebp, dword [esi + 0x5c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x58]
xor edi, edi
mov dword [esp + 0x20], ecx
cmp eax, 3
jne 0x405d79
mov edx, 0x2e
lea eax, [esp + 0x18]
sub edx, edi
push eax
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0x4560]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
push ecx
mov ecx, 0x20
call fcn.004f44e0
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x28]
push eax
mov eax, ebp
push edx
push ebp
sar eax, 0x1f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push ebx
call dword [esi + 0x455c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
adc ebp, ebx
add ecx, eax
mov eax, dword [esp + 0x18]
cmp edi, 0x2e
mov dword [esp + 0x10], ecx
jb 0x405d07
cmp eax, 3
mov dword [esp + 0x14], edi
ja case.0x405d86.1
jmp dword [eax*4 + 0x406604]
mov dword [esp + 0x10], 2
mov byte [esi + 0x14f3c], 1
jmp 0x406000
mov dword [esp + 0x10], 0x30
jmp 0x406000
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x4e58]
add edx, edi
mov dword [esp + 0x10], ebx
mov dword [esi + 0x58], edx
mov ecx, dword [esi + 0x5c]
adc ecx, ebx
cmp eax, 0x2014b50
mov dword [esi + 0x5c], ecx
jne 0x406000
xor ebp, ebp
xor ecx, ecx
mov bp, word [esi + 0x4e78]
mov cx, word [esi + 0x4e74]
xor edx, edx
add ebp, ecx
mov dx, word [esi + 0x4e76]
add ebp, edx
push ebp
call fcn.004f3cf8
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x406000
mov dword [esp + 0x10], eax
mov eax, 3
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jbe 0x405ea2
cmp eax, 3
jne 0x405ea2
mov eax, ebp
lea ecx, [esp + 0x18]
sub eax, edi
push ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x4560]
mov eax, dword [esi + 0x60]
push edx
mov edx, dword [esi + 0x64]
mov ecx, 0x20
call fcn.004f44e0
push eax
mov eax, dword [esi + 0x60]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
mov ecx, eax
push eax
sar ecx, 0x1f
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
push ebx
call dword [esi + 0x455c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
adc edx, ebx
add ecx, eax
mov eax, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
jb 0x405e28
cmp eax, 3
mov dword [esp + 0x14], edi
ja case.0x405eab.1
jmp dword [eax*4 + 0x406614]
mov dword [esp + 0x10], 2
mov byte [esi + 0x14f3c], 1
jmp 0x405ff3
mov dword [esp + 0x10], 5
jmp 0x406000
mov dword [esp + 0x10], 0x30
jmp 0x405ff3
mov dword [esp + 0x10], 5
jmp 0x405ff3
mov ebp, dword [esi + 0x58]
mov ax, word [esi + 0x4e60]
add ebp, edi
mov ecx, 0x7fffffff
mov dword [esi + 0x58], ebp
mov edx, dword [esi + 0x5c]
adc edx, ebx
mov dword [esi + 0x4e6c], ecx
mov dword [esi + 0x5c], edx
mov dx, word [esi + 0x4e62]
mov word [esi + 0x45b0], dx
mov edx, dword [esi + 0x4e68]
mov dword [esi + 0x45b6], edx
mov dx, word [esi + 0x4e66]
mov word [esi + 0x45b4], dx
mov dx, word [esi + 0x4e64]
mov word [esi + 0x45b2], dx
mov dx, word [esi + 0x4e74]
mov dword [esi + 0x4e70], ecx
mov dword [esi + 0x45ba], ecx
mov word [esi + 0x45c2], dx
mov dx, word [esi + 0x4e76]
mov dword [esi + 0x45be], ecx
mov cx, word [esi + 0x4e5e]
test al, 1
mov word [esi + 0x45ae], ax
mov dword [esi + 0x45a8], 0x4034b50
mov word [esi + 0x45ac], cx
mov word [esi + 0x45c4], dx
mov dword [esi + 0x4ec2], ebx
je 0x405fa6
mov dword [esi + 0x4ec2], 1
push 0x550de4
call fcn.00407560
push 0x550de4
call fcn.00404a40
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14f28]
add esp, 8
cmp eax, ebx
je 0x405fda
push eax
call fcn.004f3d04
add esp, 4
mov dword [esi + 0x14f28], ebx
mov eax, dword [esi + 0x15f8a]
cmp eax, ebx
je 0x405ff3
push eax
call fcn.004f3d04
add esp, 4
mov dword [esi + 0x15f8a], ebx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004f3d04
add esp, 4
mov ebp, dword [esp + 0x1144]
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.00404cb0
mov edi, dword [esp + 0x18]
add esp, 8
cmp edi, ebx
je 0x406036
cmp edi, 0x2c
je 0x406036
mov edx, dword [ebp + 0x28]
push edx
push 0x550de4
push edi
call fcn.004012a0
add esp, 0xc
jmp 0x406040
push ebp
push edi
call fcn.00408ac0
add esp, 8
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x1c4], ebx
push eax
call fcn.004066a0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
cmp dword [esp + 0x38], ebx
jne 0x40622b
cmp dword [esp + 0x3c], ebx
jge 0x406083
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x7a
jmp 0x40654a
lea edx, [esp + 0x28]
push edx
call fcn.00402320
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4060c3
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.00404cb0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
dec ecx
cmp eax, ecx
jle 0x406117
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.00404cb0
mov eax, dword [ebp + 0x28]
add esp, 8
push eax
push 2
push 0x7b
call fcn.0040b960
add esp, 8
push eax
push 0x19
call fcn.004012a0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x10
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
cmp dword [esi + 0x4eba], ebx
je 0x40617f
cmp dword [esp + 0x54], ebx
jne 0x40617f
cmp dword [esi + 0x44], ebx
jne 0x40617f
cmp dword [esi + 0x4c], ebx
jne 0x40617f
cmp dword [esi + 0x38], ebx
jne 0x40617f
lea eax, [esi + 0x33c]
lea ecx, [esi + 0x133c]
push eax
push ecx
call fcn.0040a210
add esp, 8
cmp eax, 1
jne 0x40617f
push 0x550de4
push ebx
push ebx
push ebx
push 6
call fcn.004080e0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x18
mov eax, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
test byte [esp + 0x94], 4
je 0x4061a6
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], 1
mov edx, dword [esp + 0x94]
and edx, 8
push edx
call fcn.00409d50
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.00406720
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x28], ebx
je 0x4061c9
call fcn.00409e80
mov dword [esi + 0x2c], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4061fa
cmp eax, 0x31
je 0x4061fa
cmp eax, 0x30
je 0x4061fa
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x7c
call fcn.0040b960
mov edx, dword [esp + 0x1c]
add esp, 8
push eax
push edx
call fcn.004012a0
add esp, 0xc
lea eax, [esp + 0x28]
mov byte [esi + 0x14f42], bl
push eax
push ebp
mov dword [esi + 0x1c4], ebx
call fcn.00404cb0
push edi
call fcn.004066a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
lea ecx, [esp + 0x28]
push ecx
call fcn.004024b0
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40627e
mov eax, dword [esp + 0x1144]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00404cb0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
mov ecx, dword [esp + 0x5c]
push ecx
push 0x550de4
push ebp
call fcn.004012a0
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov eax, dword [esp + 0x74]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4062d8
mov ebp, dword [esp + 0x1144]
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.00404cb0
mov eax, dword [ebp + 0x28]
add esp, 8
push eax
push 2
push 0x7d
call fcn.0040b960
add esp, 8
push eax
push 0xb
call fcn.004012a0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
cmp dword [esi + 0x4eba], ebx
je 0x406314
cmp dword [esp + 0x54], ebx
jne 0x406314
cmp dword [esi + 0x44], ebx
jne 0x406314
cmp dword [esi + 0x4c], ebx
jne 0x406314
cmp dword [esi + 0x38], ebx
jne 0x406314
lea eax, [esi + 0x33c]
lea ecx, [esi + 0x133c]
push eax
push ecx
call fcn.0040a210
add esp, 8
cmp eax, 1
je 0x40614f
mov dword [esi + 0x1c0], 1
mov al, byte [esp + 0x94]
test al, 4
je 0x406346
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], 1
mov edx, dword [esp + 0x94]
and edx, 8
push edx
call fcn.00409d50
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jle 0x406486
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x28]
lea eax, [esp + 0x8d8]
push ecx
mov dword [esp + 0xba], eax
call fcn.00403590
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x406416
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x8dc]
push eax
push ebp
push ebx
push 0x47
mov dword [esp + 0x4c], edx
call fcn.0040b960
add esp, 8
lea ecx, [esp + 0xe0]
push eax
push ecx
call dword [0x5005cc]
mov edx, dword [esp + 0x20]
push ebp
lea eax, [esp + 0xec]
push edx
push eax
call fcn.00407f30
add esp, 0x1c
cmp eax, 1
je 0x40640f
lea ecx, [esp + 0x28]
push ecx
call fcn.00406720
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4063f8
cmp ebp, 0x31
je 0x4063f8
cmp ebp, 0x30
je 0x4063ef
cmp ebp, 0x28
jne 0x40646b
cmp ebp, 0x31
jne 0x406486
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
dec eax
cmp eax, ecx
jge 0x406486
jmp 0x40635e
mov ebp, 0x30
jmp 0x406486
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x6b
call fcn.0040b960
add esp, 8
push eax
push ebp
call fcn.004012a0
mov ecx, dword [esp + 0x1150]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0xc6], ebx
push ecx
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
call fcn.00404cb0
push edi
call fcn.004066a0
add esp, 0x18
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x7c
call fcn.0040b960
add esp, 8
push eax
push ebp
call fcn.004012a0
add esp, 0xc
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], ebx
cmp eax, ebx
mov dword [esi + 0x1c0], ebx
je 0x40649e
call fcn.00409e80
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x1144]
lea eax, [esp + 0x28]
push eax
mov byte [esi + 0x14f42], bl
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xbe], ebx
call fcn.00404cb0
add esp, 8
cmp ebp, ebx
je 0x406504
cmp ebp, 0x2c
je 0x406504
mov edx, dword [esp + 0x1144]
mov eax, dword [edx + 0x28]
push eax
push 0x550de4
push ebp
call fcn.004012a0
add esp, 0xc
mov dword [esi + 0x1c4], ebx
push edi
call fcn.004066a0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov ecx, dword [esp + 0x1144]
push ecx
push ebp
call fcn.00408ac0
add esp, 8
mov dword [esi + 0x1c4], ebx
push edi
call fcn.004066a0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x83
jmp 0x40654a
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x79
call fcn.0040b960
add esp, 8
push eax
push 0x2f
call fcn.004012a0
push edi
mov dword [esi + 0x1c4], ebx
call fcn.004066a0
add esp, 0x10
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1130
ret 4