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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
cmp eax, dword [ebp + 0x90]
push esi
mov esi, dword [ebp + 0x164]
push edi
mov dword [esp + 0x14], esi
jne 0x405b03
lea edx, [ebp + 0x124]
lea ecx, [ebp + 0x120]
mov dword [esp + 0x10], edx
jmp 0x405b10
mov ecx, dword [ebp + 0x12c]
lea eax, [ecx + 4]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
test edi, edi
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [ecx], ebx
mov edx, dword [esp + 0x34]
mov byte [esp + 0x20], 1
mov dword [eax], edx
jg 0x405b59
cmp byte [esp + 0x3c], 0
je 0x405b40
test edi, edi
jne 0x406fdd
lea eax, [edi + 4]
cmp eax, 4
ja case.0x405b48.3
jmp dword [eax*4 + 0x407218]
mov ecx, dword [esp + 0x2c]
neg edi
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ebp + 0x100]
push ecx
push ebx
lea eax, [ebp + 0x100]
push edi
push eax
call edx
mov dword [esp + 0x44], eax
add eax, 1
add esp, 0x14
cmp eax, 0x3d
ja case.default.0x405b87
jmp dword [eax*4 + 0x40722c]
xor ecx, ecx
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
mov edx, ebp
call fcn.004032d0
add esp, 4
test eax, eax
jne 0x40720e
mov ecx, dword [ebp + 0x90]
mov dword [esp + 0x24], ecx
jmp 0x406778
cmp dword [ebp + 0x54], 0
je 0x405bfd
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0x140], eax
je 0x405ed5
mov edx, dword [ebp + 0x1ac]
mov dword [ebp + 0x1b0], edx
mov dword [ebp + 0x148], ecx
mov byte [esp + 0x20], cl
mov dword [ebp + 0x144], 0
cmp byte [esp + 0x20], 0
je 0x406778
jmp case.default.0x405b87
mov eax, dword [ebp + 0x54]
test eax, eax
je case.default.0x405b87
mov ecx, dword [ebp + 0x148]
mov edx, dword [ebp + 0x144]
push 1
push ecx
mov ecx, dword [ebp + 0x140]
push edx
mov edx, dword [ebp + 4]
push ecx
push edx
call eax
add esp, 0x14
lea ecx, [ebp + 0x1a0]
mov dword [ebp + 0x140], 0
call fcn.00401da0
jmp 0x406778
mov ecx, 1
jmp 0x405b90
push 0x24
push 0x57035c
lea edi, [esi + 0x84]
mov byte [ebp + 0x1e9], 0
call fcn.00401a40
add esp, 8
test eax, eax
mov dword [ebp + 0x13c], eax
je 0x405ed5
mov byte [esi + 0x81], 1
cmp dword [ebp + 0x54], 0
je case.0x405b87.14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x38]
push ecx
push eax
call edx
add esp, 0x10
test eax, eax
je 0x40709b
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
test eax, eax
mov dword [ebp + 0x148], eax
je 0x405ed5
mov edi, eax
call fcn.00401980
mov edx, dword [ebp + 0x1ac]
mov dword [ebp + 0x1b0], edx
mov byte [esp + 0x20], 0
jmp 0x405d2b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [eax + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x40709b
cmp byte [esi + 0x80], 0
je 0x405c07
cmp dword [ebp + 0x13c], 0
je 0x405c07
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov edi, eax
test edi, edi
je 0x405ed5
call fcn.00401980
mov edx, dword [ebp + 0x13c]
mov dword [edx + 0x18], edi
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
cmp dword [ebp + 0x88], 0
jne 0x406778
jmp 0x405c07
mov eax, dword [ebp + 0x140]
test eax, eax
je 0x405dc7
mov ecx, dword [ebp + 0x148]
mov edx, dword [ebp + 0x144]
push 0
push ecx
mov ecx, dword [ebp + 0x54]
push edx
push eax
mov eax, dword [ebp + 4]
push eax
call ecx
add esp, 0x14
lea ecx, [ebp + 0x1a0]
call fcn.00401da0
mov byte [esp + 0x20], 0
cmp dword [ebp + 0x144], 0
jne 0x405ddd
cmp byte [ebp + 0x1e9], 0
je 0x405e9b
mov bl, byte [esi + 0x81]
mov byte [esi + 0x81], 1
cmp dword [ebp + 0x1ec], 0
je 0x405e94
cmp dword [ebp + 0x70], 0
je 0x405e94
push 0x24
push 0x57035c
lea edi, [esi + 0x84]
call fcn.00401a40
add esp, 8
test eax, eax
je 0x405ed5
cmp byte [ebp + 0x1e9], 0
je 0x405e30
mov edx, dword [ebp + 0x168]
mov dword [eax + 0x14], edx
mov byte [esi + 0x83], 0
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
mov ecx, dword [ebp + 0x74]
push edx
mov edx, dword [ebp + 0x70]
push eax
push 0
push ecx
call edx
add esp, 0x14
test eax, eax
je 0x4070a8
cmp byte [esi + 0x83], 0
je 0x405e85
cmp byte [esi + 0x82], 0
jne 0x405e94
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x405e94
mov ecx, dword [ebp + 4]
push ecx
call eax
add esp, 4
test eax, eax
je 0x40715b
jmp 0x405e94
cmp dword [ebp + 0x144], 0
jne 0x405e94
mov byte [esi + 0x81], bl
mov byte [ebp + 0x1e9], 0
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x405c07
mov edx, dword [ebp + 4]
push edx
call eax
jmp 0x406775
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push ebp
call fcn.00402f10
add esp, 8
test eax, eax
mov dword [ebp + 0x158], eax
jne case.0x405b87.33
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push ebp
call fcn.00403ec0
add esp, 0x10
test eax, eax
mov dword [ebp + 0x15c], eax
je 0x405ed5
mov byte [ebp + 0x160], 0
mov dword [ebp + 0x14c], 0
mov byte [ebp + 0x161], 0
jmp case.0x405b87.33
mov byte [ebp + 0x160], 1
mov dword [ebp + 0x14c], 0x570360
jmp case.0x405b87.33
mov byte [ebp + 0x161], 1
mov dword [ebp + 0x14c], 0x57036c
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x570374
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x570380
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x570390
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x5703a0
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x5703b4
jmp case.0x405b87.33
mov dword [ebp + 0x14c], 0x5703c4
cmp byte [esi + 0x80], 0
je case.default.0x405b87
cmp dword [ebp + 0x84], 0
je case.default.0x405b87
jmp 0x406778
cmp byte [esi + 0x80], 0
je case.default.0x405b87
cmp dword [ebp + 0x84], 0
je case.default.0x405b87
cmp dword [ebp + 0x14c], 0
je 0x405fd3
mov eax, 0x5703ec
jmp 0x405fe4
cmp dword [esp + 0x30], 0x20
mov eax, str.NOTATION_
je 0x405fe4
mov eax, 0x5703f0
lea ecx, [ebp + 0x1a0]
call fcn.00402e80
test eax, eax
je 0x405ed5
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
push ecx
lea eax, [ebp + 0x1a0]
call fcn.00402de0
add esp, 4
test eax, eax
je 0x405ed5
mov edx, dword [ebp + 0x1b0]
mov dword [ebp + 0x14c], edx
jmp 0x406778
cmp byte [esi + 0x80], 0
je case.default.0x405b87
movzx eax, byte [ebp + 0x160]
mov ecx, dword [ebp + 0x15c]
mov dl, byte [ebp + 0x161]
mov esi, dword [ebp + 0x158]
push 0
push eax
push ecx
mov ebx, ebp
call fcn.004018b0
add esp, 0xc
test eax, eax
je 0x405ed5
cmp dword [ebp + 0x84], 0
je 0x406753
mov eax, dword [ebp + 0x14c]
test eax, eax
je 0x406753
movzx ecx, word [eax]
cmp cx, 0x28
je 0x4060a0
cmp cx, 0x4e
jne 0x406121
cmp word [eax + 2], 0x4f
jne 0x406121
mov edx, dword [ebp + 0x1ac]
cmp edx, dword [ebp + 0x1a8]
jne 0x4060c1
lea esi, [ebp + 0x1a0]
call fcn.00401e20
test al, al
je 0x405ed5
mov eax, dword [ebp + 0x1ac]
mov word [eax], 0x29
mov edi, 2
add dword [ebp + 0x1ac], edi
mov eax, dword [ebp + 0x1ac]
cmp eax, dword [ebp + 0x1a8]
jne 0x4060f8
lea esi, [ebp + 0x1a0]
call fcn.00401e20
test al, al
je 0x405ed5
mov ecx, dword [ebp + 0x1ac]
mov word [ecx], 0
add dword [ebp + 0x1ac], edi
mov edx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1ac]
mov dword [ebp + 0x14c], edx
mov dword [ebp + 0x1b0], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x30], 0x24
mov dword [ecx], eax
mov eax, dword [ebp + 0x14c]
mov ecx, dword [ebp + 0x15c]
sete dl
push edx
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [ebp + 0x158]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x84]
push edx
mov edx, dword [ebp + 4]
push ecx
push edx
call eax
add esp, 0x18
lea ecx, [ebp + 0x1a0]
call fcn.00401da0
mov esi, dword [esp + 0x14]
jmp 0x406778
cmp byte [esi + 0x80], 0
je case.default.0x405b87
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x44]
mov eax, dword [esp + 0x34]
mov bl, byte [ebp + 0x160]
add esi, 0x50
push esi
mov esi, dword [esp + 0x2c]
push edx
sub eax, ecx
add ecx, esi
push ebp
call fcn.00404520
add esp, 0xc
test eax, eax
jne 0x40720e
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x60]
mov ecx, dword [eax + 0x5c]
mov dword [eax + 0x60], ecx
movzx edx, byte [ebp + 0x160]
mov eax, dword [ebp + 0x15c]
mov esi, dword [ebp + 0x158]
push edi
push edx
push eax
mov ebx, ebp
xor dl, dl
call fcn.004018b0
add esp, 0xc
test eax, eax
je 0x405ed5
cmp dword [ebp + 0x84], 0
je 0x406753
mov eax, dword [ebp + 0x14c]
test eax, eax
je 0x406753
movzx ecx, word [eax]
cmp cx, 0x28
je 0x406220
cmp cx, 0x4e
jne 0x4062a1
cmp word [eax + 2], 0x4f
jne 0x4062a1
mov ecx, dword [ebp + 0x1ac]
cmp ecx, dword [ebp + 0x1a8]
jne 0x406241
lea esi, [ebp + 0x1a0]
call fcn.00401e20
test al, al
je 0x405ed5
mov edx, dword [ebp + 0x1ac]
mov word [edx], 0x29
mov ebx, 2
add dword [ebp + 0x1ac], ebx
mov eax, dword [ebp + 0x1ac]
cmp eax, dword [ebp + 0x1a8]
jne 0x406278
lea esi, [ebp + 0x1a0]
call fcn.00401e20
test al, al
je 0x405ed5
mov eax, dword [ebp + 0x1ac]
mov word [eax], 0
add dword [ebp + 0x1ac], ebx
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1ac]
mov dword [ebp + 0x14c], ecx
mov dword [ebp + 0x1b0], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x30], 0x26
mov dword [eax], edx
mov edx, dword [ebp + 0x14c]
mov eax, dword [ebp + 0x15c]
sete cl
push ecx
mov ecx, dword [eax]
push edi
push edx
mov edx, dword [ebp + 0x158]
mov eax, dword [edx]
mov edx, dword [ebp + 0x84]
push ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call edx
jmp 0x40615d
cmp byte [esi + 0x80], 0
je case.default.0x405b87
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
sub edx, eax
push edx
add eax, edi
push eax
push ecx
push ebp
call fcn.00403920
mov ebx, eax
mov eax, dword [ebp + 0x13c]
add esp, 0x10
test eax, eax
je 0x40637e
mov ecx, dword [esi + 0x78]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x74]
sub edx, dword [esi + 0x78]
mov eax, dword [ebp + 0x13c]
sar edx, 1
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x78], ecx
cmp dword [ebp + 0x88], 0
je 0x406384
mov edx, dword [esp + 0x10]
push 0
mov dword [edx], edi
mov eax, dword [ebp + 0x13c]
mov ecx, dword [ebp + 0x168]
mov edx, dword [eax + 8]
push 0
push 0
push ecx
mov ecx, dword [eax + 4]
push edx
movzx edx, byte [eax + 0x21]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x88]
push eax
push ecx
call edx
add esp, 0x24
mov byte [esp + 0x20], 0
jmp 0x406384
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
test ebx, ebx
je 0x405c07
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
mov byte [ebp + 0x1e9], 0
mov byte [esi + 0x81], 1
cmp dword [ebp + 0x54], 0
je 0x4063e9
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
test eax, eax
mov dword [ebp + 0x144], eax
je 0x405ed5
mov edx, dword [ebp + 0x1ac]
mov dword [ebp + 0x1b0], edx
mov byte [esp + 0x20], 0
jmp 0x4063f3
mov dword [ebp + 0x144], 0x57035c
cmp byte [esi + 0x82], 0
jne 0x40641d
cmp dword [ebp + 0x1ec], 0
jne 0x40641d
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x40641d
mov ecx, dword [ebp + 4]
push ecx
call eax
add esp, 4
test eax, eax
je 0x40715b
cmp dword [ebp + 0x13c], 0
jne case.0x405b87.13
push 0x24
push 0x57035c
lea edi, [esi + 0x84]
call fcn.00401a40
add esp, 8
test eax, eax
mov dword [ebp + 0x13c], eax
je 0x405ed5
mov dword [eax + 0x18], 0
cmp byte [esi + 0x80], 0
je 0x405c07
cmp dword [ebp + 0x13c], 0
je 0x405c07
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
sub edi, eax
add eax, edx
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov ecx, dword [ebp + 0x13c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x13c]
cmp dword [eax + 0x10], 0
je 0x405ed5
mov edx, dword [ebp + 0x168]
mov dword [eax + 0x14], edx
jmp 0x405d78
cmp byte [esi + 0x80], 0
je case.default.0x405b87
cmp dword [ebp + 0x13c], 0
je case.default.0x405b87
cmp dword [ebp + 0x88], 0
je case.default.0x405b87
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x13c]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x10]
push 0
push ecx
mov ecx, dword [eax + 0x14]
push edx
movzx edx, byte [eax + 0x21]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 4]
push 0
push 0
push edx
mov edx, dword [ebp + 0x88]
push eax
push ecx
call edx
add esp, 0x24
jmp 0x406778
cmp byte [esi + 0x80], 0
je case.default.0x405b87
cmp dword [ebp + 0x13c], 0
je case.default.0x405b87
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov ecx, dword [ebp + 0x13c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 0x13c]
cmp dword [edx + 0x1c], 0
je 0x405ed5
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
cmp dword [ebp + 0x5c], 0
je 0x406598
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x13c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x5c]
push eax
push ecx
call edx
add esp, 0x18
jmp 0x406778
cmp dword [ebp + 0x88], 0
je 0x406753
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x13c]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x88]
push 0
push 0
push 0
push edx
push eax
call ecx
add esp, 0x24
jmp 0x406778
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x30]
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x40660c
mov dword [ebp + 0x13c], 0
jmp case.default.0x405b87
cmp byte [esi + 0x80], 0
je 0x4066a4
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov ebx, eax
test ebx, ebx
je 0x405ed5
push 0x24
push ebx
mov edi, esi
call fcn.00401a40
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x13c], eax
je 0x405ed5
cmp dword [eax], ebx
je 0x406669
mov edx, dword [esi + 0x60]
mov dword [esi + 0x5c], edx
mov dword [ebp + 0x13c], ecx
jmp case.default.0x405b87
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov edx, dword [ebp + 0x13c]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0x13c]
mov byte [eax + 0x21], 0
cmp dword [ebp + 0x1dc], ecx
jne 0x406740
cmp dword [ebp + 0x12c], ecx
jne 0x406740
mov eax, 1
jmp 0x406742
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], eax
mov dword [ebp + 0x13c], 0
jmp case.default.0x405b87
cmp byte [esi + 0x80], 0
je 0x4066a4
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov ebx, eax
test ebx, ebx
je 0x405ed5
push 0x24
push ebx
lea edi, [esi + 0x84]
call fcn.00401a40
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x13c], eax
je 0x405ed5
cmp dword [eax], ebx
je 0x406713
mov edx, dword [esi + 0x60]
mov dword [esi + 0x5c], edx
mov dword [ebp + 0x13c], ecx
jmp case.default.0x405b87
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov edx, dword [ebp + 0x13c]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp + 0x13c]
mov eax, 1
mov byte [edx + 0x21], al
cmp dword [ebp + 0x1dc], ecx
jne 0x406740
cmp dword [ebp + 0x12c], ecx
je 0x406742
xor eax, eax
mov edx, dword [ebp + 0x13c]
mov byte [edx + 0x22], al
cmp dword [ebp + 0x88], ecx
jne 0x406778
mov esi, dword [esp + 0x14]
cmp dword [ebp + 0x50], 0
je 0x406778
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
mov esi, ebp
call fcn.00401800
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [ebp + 0x1e0]
sub eax, 2
je 0x407209
sub eax, 1
je 0x4071f5
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edi, eax
jmp 0x405b18
xor eax, eax
cmp dword [ebp + 0x60], eax
mov dword [ebp + 0x154], eax
mov dword [ebp + 0x150], eax
je case.default.0x405b87
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
test eax, eax
mov dword [ebp + 0x150], eax
je 0x405ed5
mov ecx, dword [ebp + 0x1ac]
mov dword [ebp + 0x1b0], ecx
jmp 0x406778
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x38]
push ecx
push eax
call edx
add esp, 0x10
test eax, eax
je 0x40709b
cmp dword [ebp + 0x150], 0
je case.default.0x405b87
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
mov edi, eax
test edi, edi
je 0x405ed5
call fcn.00401980
mov edx, dword [ebp + 0x1ac]
mov dword [ebp + 0x154], edi
mov dword [ebp + 0x1b0], edx
jmp 0x406778
cmp dword [ebp + 0x150], 0
je 0x4068de
cmp dword [ebp + 0x60], 0
je 0x4068de
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [ebp + 0x1a0]
call fcn.00402ed0
test eax, eax
je 0x405ed5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
mov edx, dword [ebp + 0x154]
mov ecx, dword [ebp + 0x150]
push edx
mov edx, dword [ebp + 4]
push eax
mov eax, dword [ebp + 0x168]
push eax
mov eax, dword [ebp + 0x60]
push ecx
push edx
call eax
add esp, 0x14
mov byte [esp + 0x20], 0
lea ecx, [ebp + 0x1a0]
call fcn.00401da0
jmp 0x405c07
cmp dword [ebp + 0x154], 0
je 0x4068de
cmp dword [ebp + 0x60], 0
je 0x4068de
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x154]
mov ecx, dword [ebp + 0x168]
mov edx, dword [ebp + 0x150]
push eax
mov eax, dword [ebp + 4]
push 0
push ecx
mov ecx, dword [ebp + 0x60]
push edx
push eax
call ecx
jmp 0x4068d6
cmp dword [ebp + 0x50], 0
je 0x40694a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
push edx
mov esi, ebp
call fcn.00401800
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x34]
push ebp
call fcn.00402640
add esp, 0x14
test eax, eax
jne 0x40720e
cmp dword [esp + 0x34], eax
jne 0x406778
pop edi
pop esi
mov dword [ebp + 0x118], 0x403270
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 0x1d4]
cmp dword [ebp + 0x104], eax
jb 0x406a17
test eax, eax
je 0x4069f5
mov ecx, dword [ebp + 0x1d0]
mov edx, dword [ebp + 0x10]
add eax, eax
push eax
push ecx
mov dword [ebp + 0x1d4], eax
call edx
add esp, 8
test eax, eax
je 0x405ed5
mov dword [ebp + 0x1d0], eax
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x406a17
mov ecx, dword [ebp + 0x1d4]
mov edx, dword [ebp + 0x10]
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
test eax, eax
je 0x405ed5
mov dword [esi + 0xb8], eax
jmp 0x406a17
mov eax, dword [ebp + 0xc]
push 0x20
mov dword [ebp + 0x1d4], 0x20
call eax
add esp, 4
test eax, eax
mov dword [ebp + 0x1d0], eax
je 0x405ed5
mov ecx, dword [ebp + 0x1d0]
mov edx, dword [ebp + 0x104]
mov byte [ecx + edx], 0
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
mov eax, ebp
call fcn.00401f90
test eax, eax
jl 0x405ed5
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov dword [edx + ecx*4], eax
add dword [esi + 0xb4], 1
mov edx, dword [esi + 0xa4]
lea ecx, [eax*8]
sub ecx, eax
mov dword [edx + ecx*4], 6
cmp dword [ebp + 0x80], 0
je case.default.0x405b87
jmp 0x406778
mov eax, dword [ebp + 0x1d0]
mov ecx, dword [ebp + 0x104]
add eax, ecx
cmp byte [eax], 0x7c
je 0x4071c1
mov byte [eax], 0x2c
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
cmp dword [ebp + 0x80], 0
je case.default.0x405b87
jmp 0x406778
mov edx, dword [ebp + 0x1d0]
mov eax, dword [ebp + 0x104]
mov al, byte [edx + eax]
cmp al, 0x2c
je 0x4071c1
cmp byte [esi + 0xa0], 0
je 0x406b1a
test al, al
jne 0x406b1a
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov eax, dword [edx + ecx*4 - 4]
mov edx, dword [esi + 0xa4]
lea ecx, [eax*8]
sub ecx, eax
cmp dword [edx + ecx*4], 3
lea eax, [edx + ecx*4]
je 0x406b1a
mov dword [eax], 5
cmp dword [ebp + 0x80], 0
je 0x406b1a
mov byte [esp + 0x20], 0
mov eax, dword [ebp + 0x1d0]
mov ecx, dword [ebp + 0x104]
mov byte [eax + ecx], 0x7c
jmp 0x405c07
mov byte [esi + 0x81], 1
cmp dword [ebp + 0x1ec], 0
jne 0x406b79
mov dl, byte [esi + 0x82]
mov byte [esi + 0x80], dl
cmp byte [esi + 0x82], 0
jne 0x405c07
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x405c07
mov ecx, dword [ebp + 4]
push ecx
call eax
add esp, 4
test eax, eax
je 0x40715b
jmp 0x405c07
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub edi, eax
add eax, ecx
lea ecx, [esi + 0x50]
call fcn.00402ed0
mov ebx, eax
test ebx, ebx
je 0x405ed5
push 0
push ebx
lea edi, [esi + 0x84]
call fcn.00401a40
mov edx, dword [esi + 0x60]
add esp, 8
mov dword [esi + 0x5c], edx
cmp dword [ebp + 0x110], 0
mov edi, eax
je 0x406c27
xor eax, eax
cmp byte [esi + 0x82], al
je 0x406bd2
cmp dword [ebp + 0x12c], eax
jmp 0x406bd9
cmp byte [esi + 0x81], 0
sete al
test eax, eax
je 0x406c27
test edi, edi
je 0x4071ce
cmp byte [edi + 0x22], 0
je 0x4071db
cmp byte [edi + 0x20], 0
jne 0x4071e8
cmp dword [edi + 4], 0
je 0x406c5e
cmp dword [esp + 0x30], 0x3c
mov esi, ebp
sete dl
push edx
push edi
call fcn.00401660
add esp, 8
test eax, eax
jne 0x40720e
mov esi, dword [esp + 0x14]
jmp 0x406778
test edi, edi
jne 0x406bf2
cmp dword [esp + 0x30], 0x3c
mov al, byte [esi + 0x82]
mov byte [esi + 0x80], al
jne 0x406753
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x406753
mov ecx, dword [ebp + 4]
push 1
push ebx
push ecx
call eax
add esp, 0xc
jmp 0x406778
cmp dword [ebp + 0x70], 0
je 0x406cb8
mov byte [esi + 0x83], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
push eax
push ecx
push edx
mov byte [edi + 0x20], 1
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x70]
push 0
push eax
call ecx
add esp, 0x14
test eax, eax
mov byte [edi + 0x20], 0
je 0x4070a8
cmp byte [esi + 0x83], 0
mov byte [esp + 0x20], 0
jne 0x406b4b
mov dl, byte [esi + 0x82]
mov byte [esi + 0x80], dl
jmp 0x406778
mov dl, byte [esi + 0x82]
mov byte [esi + 0x80], dl
jmp case.default.0x405b87
cmp dword [ebp + 0x80], 0
je case.default.0x405b87
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push ebp
call fcn.00402f10
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x158], eax
je 0x405ed5
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb0], ecx
mov byte [esi + 0xa0], 1
jmp 0x406778
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
xor edi, edi
cmp dword [ebp + 0x80], edi
je 0x406d80
mov ecx, dword [ebp + 0xc]
push 0x14
call ecx
add esp, 4
cmp eax, edi
je 0x405ed5
mov ecx, dword [esp + 0x28]
xor edx, edx
cmp dword [esp + 0x30], 0x29
mov dword [eax + 4], edi
sete dl
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
push eax
add edx, 1
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp + 0x158]
mov ecx, dword [eax]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 0x80]
push ecx
push edx
call eax
add esp, 0xc
mov byte [esp + 0x20], 0
mov byte [esi + 0xa0], 0
jmp 0x405c07
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov eax, dword [edx + ecx*4 - 4]
mov edx, dword [esi + 0xa4]
lea ecx, [eax*8]
sub ecx, eax
mov dword [edx + ecx*4], 3
cmp dword [ebp + 0x80], 0
je case.default.0x405b87
jmp 0x406778
xor ebx, ebx
jmp 0x406de8
mov ebx, 1
jmp 0x406de8
mov ebx, 2
jmp 0x406de8
mov ebx, 3
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
test ebx, ebx
mov eax, dword [esp + 0x34]
je 0x406e04
mov ecx, dword [esp + 0x24]
sub eax, dword [ecx + 0x44]
mov dword [esp + 0x20], eax
mov eax, ebp
call fcn.00401f90
test eax, eax
jl 0x405ed5
mov edx, dword [esi + 0xa4]
mov ecx, dword [esp + 0x24]
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
mov dword [edi + edx], 4
mov eax, dword [esi + 0xa4]
mov edx, dword [esp + 0x20]
push ecx
mov dword [edi + eax + 4], ebx
mov eax, dword [esp + 0x2c]
push ebp
call fcn.00402f10
add esp, 8
test eax, eax
je 0x405ed5
mov eax, dword [eax]
mov edx, dword [esi + 0xa4]
mov dword [edi + edx + 8], eax
xor ecx, ecx
jmp 0x406e70
mov dx, word [eax + ecx*2]
add ecx, 1
test dx, dx
jne 0x406e70
add dword [esi + 0xa8], ecx
cmp dword [ebp + 0x80], 0
je case.default.0x405b87
jmp 0x406778
xor ecx, ecx
jmp 0x406eab
mov ecx, 1
jmp 0x406eab
mov ecx, 2
jmp 0x406eab
mov ecx, 3
cmp byte [esi + 0xa0], 0
je case.default.0x405b87
cmp dword [ebp + 0x80], 0
je 0x406ec6
mov byte [esp + 0x20], 0
add dword [esi + 0xb4], 0xffffffff
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
mov eax, dword [edx + eax*4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 0xa4]
mov dword [eax + edx*4 + 4], ecx
cmp dword [esi + 0xb4], 0
jne 0x405c07
cmp byte [esp + 0x20], 0
jne 0x406f35
mov ebx, ebp
call fcn.004021c0
test eax, eax
je 0x405ed5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov edx, dword [ebp + 4]
push eax
mov eax, dword [ebp + 0x158]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x80]
push ecx
push edx
call eax
add esp, 0xc
mov byte [esi + 0xa0], 0
mov dword [esi + 0xa8], 0
jmp 0x405c07
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, ebp
call fcn.00403d70
add esp, 8
test eax, eax
je 0x405ed5
jmp 0x406778
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push ebp
call fcn.00403e40
add esp, 4
test eax, eax
je 0x405ed5
jmp 0x406778
cmp edi, 0xe
jne case.default.0x405b87
jmp 0x406778
cmp dword [ebp + 0x54], 0
je case.default.0x405b87
jmp 0x406778
cmp byte [esi + 0x80], 0
je case.default.0x405b87
cmp dword [ebp + 0x88], 0
je case.default.0x405b87
jmp 0x406778
cmp dword [ebp + 0x60], 0
je case.default.0x405b87
jmp 0x406778
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov eax, 4
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebp + 0x90]
mov eax, dword [esp + 0x24]
cmp eax, ecx
je 0x407044
mov edx, dword [ebp + 0x12c]
cmp byte [edx + 0x14], 0
jne 0x407044
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp byte [ebp + 0x1e8], 0
jne 0x40705e
cmp eax, ecx
jne 0x40705e
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebp + 0x100]
push eax
mov eax, dword [esp + 0x30]
push eax
push eax
add ebp, 0x100
push 0xfffffffffffffffc
push ebp
call ecx
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40708b
pop edi
pop esi
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword [edx], ebx
xor eax, eax
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0x20
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 0xc
ret
cmp byte [ebp + 0x1e9], 0
je 0x40716e
mov bl, byte [esi + 0x81]
mov byte [esi + 0x81], 1
cmp dword [ebp + 0x1ec], 0
je 0x40716e
cmp dword [ebp + 0x70], 0
je 0x40716e
push 0x24
push 0x57035c
lea edi, [esi + 0x84]
call fcn.00401a40
add esp, 8
test eax, eax
je 0x405ed5
mov ecx, dword [ebp + 0x168]
mov dword [eax + 0x14], ecx
mov byte [esi + 0x83], 0
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x74]
push ecx
mov ecx, dword [ebp + 0x70]
push edx
push 0
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x4070a8
cmp byte [esi + 0x83], 0
je 0x407168
cmp byte [esi + 0x82], 0
jne 0x40716e
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0x40716e
mov edx, dword [ebp + 4]
push edx
call eax
add esp, 4
test eax, eax
jne 0x40716e
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x81], bl
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push ebp
mov dword [ebp + 0x118], fcn.00405a80
call fcn.00405a80
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp edi, 0xc
je 0x4071b4
xor eax, eax
cmp edi, 0x1c
sete al
pop edi
pop esi
pop ebp
pop ebx
lea eax, [eax*8 + 2]
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0x11
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret