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

Disassembly:
push 0xffffffffffffffff
push 0x4e7c73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
mov ebx, ecx
push edi
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
push ecx
push eax
push eax
mov dword [esp + 0x58], ebx
call fcn.00408c70
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.00404010
mov al, byte [esp + 0x17]
xor ebp, ebp
mov dword [esi + 8], edi
mov byte [esp + 0xe4], al
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], ebp
mov dword [esp + 0xf0], ebp
push ebx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x100], ebp
mov dword [esp + 0x34], ebp
call fcn.00453d70
mov cl, byte [esp + 0x17]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], cl
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov al, byte [esp + 0x108]
lea ecx, [esp + 0xb8]
inc al
mov byte [esp + 0xfc], 2
mov byte [esp + 0xa8], al
mov edx, dword [esp + 0xa8]
push edx
push 5
call fcn.00454200
lea ecx, [esp + 0x78]
call fcn.0046ec80
cmp word [esp + 0x10c], bp
mov byte [esp + 0xfc], 3
mov dword [esp + 0xcc], ebp
jle 0x407f8c
mov al, byte [esp + 0x17]
mov dword [esp + 0x54], ebp
mov byte [esp + 0x50], al
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov cl, byte [esp + 0x17]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x38], cl
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
lea edx, [esp + 0xb8]
lea eax, [esp + 0xd4]
push edx
push eax
lea ecx, [ebx + 8]
mov byte [esp + 0x104], 5
call fcn.004641a0
mov edi, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xfc], 6
cmp ecx, edi
je 0x406b2e
mov eax, dword [edi + 4]
cmp eax, ebp
jne 0x406a29
xor ebx, ebx
jmp 0x406a31
mov ebx, dword [edi + 8]
sub ebx, eax
sar ebx, 2
lea ecx, [esp + 0x18]
call fcn.00403ff0
cmp ebx, eax
ja 0x406a79
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00408c70
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00404010
mov ecx, edi
call fcn.00403ff0
mov edx, dword [esp + 0x1c]
lea eax, [edx + eax*4]
mov dword [esp + 0x20], eax
jmp 0x406b2e
lea ecx, [esp + 0x18]
call fcn.00403fd0
mov ecx, edi
mov ebx, eax
call fcn.00403ff0
cmp eax, ebx
ja 0x406ad7
mov ebx, dword [edi + 4]
lea ecx, [esp + 0x18]
call fcn.00403ff0
mov ecx, dword [esp + 0x1c]
lea ebx, [ebx + eax*4]
mov eax, dword [edi + 4]
push ecx
push ebx
push eax
call fcn.00408c70
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push eax
push ebx
call fcn.00404040
mov ecx, edi
call fcn.00403ff0
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x406b2e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404010
mov edx, dword [esp + 0x1c]
push edx
call fcn.004db420
add esp, 4
mov ecx, edi
call fcn.00403ff0
cmp eax, ebp
jge 0x406b04
xor eax, eax
shl eax, 2
push eax
call fcn.004dbc04
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
push eax
push ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00404040
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
cmp edi, ebx
mov byte [esp + 0xfc], 5
je 0x406b5e
push ebp
mov ecx, edi
call fcn.00404540
add edi, 4
cmp edi, ebx
jne 0x406b48
mov edi, dword [esp + 0xd8]
push edi
call fcn.004db420
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xe0], ebp
je 0x40802b
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
cmp ecx, 3
jb 0x40802b
push ebp
lea ecx, [eax + 8]
call fcn.004541f0
and eax, 0xff
cmp eax, 5
ja case.default.0x406bb1
jmp dword [eax*4 + 0x408058]
lea edx, [esp + 0x78]
push 1
push edx
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
sub esp, 0x24
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], esp
mov edi, esp
push ecx
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.004080f0
add edi, 0x10
lea edx, [esp + 0xac]
push edx
mov ecx, edi
mov byte [esp + 0x124], 7
call fcn.00408160
mov al, byte [esp + 0xbc]
mov byte [esp + 0x120], 5
mov byte [edi + 0x10], al
mov ecx, dword [0x512d20]
call fcn.0046e5e0
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0046f1a0
lea ecx, [esp + 0xc0]
mov byte [esp + 0xfc], 8
call fcn.00454280
test ax, ax
jle 0x407f49
lea ecx, [esp + 0xc0]
mov byte [esp + 0xfc], 5
call fcn.00453ea0
jmp case.default.0x406bb1
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x408022
mov edx, dword [esp + 0x20]
sub edx, eax
sar edx, 2
cmp edx, 6
jb 0x408022
push ebp
lea ecx, [eax + 0xc]
call fcn.004541f0
mov ecx, dword [esp + 0x1c]
xor edi, edi
movzx ax, al
add ecx, 0x10
mov word [esp + 0x28], ax
call fcn.00454280
test ax, ax
jle 0x406d23
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [edx + 0x10]
call fcn.004541f0
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x6f], al
lea eax, [esp + 0x6f]
push eax
push 1
push ecx
lea ecx, [esp + 0x5c]
call fcn.004085a0
mov edx, dword [esp + 0x1c]
inc edi
lea ecx, [edx + 0x10]
call fcn.00454280
movsx eax, ax
cmp edi, eax
jl 0x406ce9
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x408022
mov ecx, dword [esp + 0x58]
sub ecx, eax
cmp ecx, 2
jb 0x408022
mov edx, dword [esp + 0x1c]
xor edi, edi
lea ecx, [edx + 0x14]
call fcn.00454280
test ax, ax
jle 0x406d8b
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + 0x14]
call fcn.004541f0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x72]
push ecx
push 1
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7e], al
call fcn.004085a0
mov eax, dword [esp + 0x1c]
inc edi
lea ecx, [eax + 0x14]
call fcn.00454280
movsx ecx, ax
cmp edi, ecx
jl 0x406d51
lea edx, [esp + 0x78]
push 1
push edx
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
sub esp, 0x24
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], esp
mov edi, esp
push ecx
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.004080f0
add edi, 0x10
lea edx, [esp + 0xac]
push edx
mov ecx, edi
mov byte [esp + 0x124], 9
call fcn.00408160
mov al, byte [esp + 0xbc]
mov byte [esp + 0x120], 5
mov byte [edi + 0x10], al
mov ecx, dword [0x512d20]
call fcn.0046e5e0
lea ecx, [esp + 0x48]
call fcn.00453d60
push ecx
mov byte [esp + 0x100], 0xa
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x80]
call fcn.0046f1a0
lea ecx, [esp + 0x4c]
call fcn.00454080
lea ecx, [esp + 0x48]
call fcn.00454280
cmp ax, 5
jle 0x407086
xor ebx, ebx
xor ebp, ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x406ead
mov edi, dword [esp + 0x40]
sub edi, eax
cmp ebp, edi
jae 0x406ead
movzx dx, byte [eax + ebp]
push edx
lea ecx, [esp + 0x4c]
call fcn.004541f0
sub edi, ebp
and eax, 0xff
lea ecx, [edi*8 - 8]
shl eax, cl
add ebx, eax
inc ebp
jmp 0x406e77
test ebx, ebx
jbe 0x407086
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x74]
add eax, 4
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x1c]
push 1
add ecx, 4
mov byte [esp + 0x100], 0xb
call fcn.004541f0
inc al
lea ecx, [esp + 0x74]
mov byte [esp + 0xd0], al
mov edx, dword [esp + 0xd0]
push edx
push 1
call fcn.00454200
lea eax, [esp + 0x78]
push 1
push eax
push ecx
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0x3c], eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
sub esp, 0x24
lea eax, [esp + 0x9c]
mov edi, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.004080f0
lea ecx, [esp + 0xac]
add edi, 0x10
push ecx
mov ecx, edi
mov byte [esp + 0x124], 0xc
call fcn.00408160
mov dl, byte [esp + 0xbc]
mov byte [esp + 0x120], 0xb
mov byte [edi + 0x10], dl
mov ecx, dword [0x512d20]
call fcn.0046e5e0
push ecx
lea ecx, [esp + 0x7c]
mov eax, esp
mov dword [esp + 0x14], esp
push eax
call fcn.0046f1a0
lea ecx, [esp + 0x4c]
call fcn.00454080
mov edi, ebx
lea ecx, [esp + 0x74]
imul edi, dword [esp + 0x28]
call fcn.00454280
movsx ebp, ax
movsx ecx, di
add ebp, ecx
lea ecx, [esp + 0x48]
call fcn.00454280
movsx edx, ax
cmp edx, ebp
jl 0x407075
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x9c]
push eax
call fcn.00453d70
xor ebp, ebp
mov byte [esp + 0xfc], 0xd
test ebx, ebx
jbe 0x407061
mov ecx, dword [esp + 0x54]
mov edi, ebp
imul edi, dword [esp + 0x28]
movzx dx, byte [ecx]
add edx, edi
lea ecx, [esp + 0x48]
push edx
call fcn.004541f0
push eax
push 4
lea ecx, [esp + 0xa4]
call fcn.00454200
mov eax, dword [esp + 0x54]
movzx cx, byte [eax + 1]
add ecx, edi
push ecx
lea ecx, [esp + 0x4c]
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xa4]
call fcn.00454200
mov eax, dword [esi + 8]
lea edx, [esp + 0x9c]
push edx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebp
cmp ebp, ebx
jb 0x406ff9
lea ecx, [esp + 0x9c]
mov byte [esp + 0xfc], 0xb
call fcn.00453ea0
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 0xa
call fcn.00453ea0
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x48]
jmp 0x407ec1
mov eax, dword [esp + 0x1c]
push ebp
lea ecx, [eax + 0xc]
call fcn.004541f0
mov edx, dword [esp + 0x1c]
xor cx, cx
mov cl, al
xor edi, edi
mov word [esp + 0x28], cx
lea ecx, [edx + 0x10]
call fcn.00454280
test ax, ax
jle 0x4070fb
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + 0x10]
call fcn.004541f0
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x6b]
push ecx
push 1
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x77], al
call fcn.004085a0
mov eax, dword [esp + 0x1c]
inc edi
lea ecx, [eax + 0x10]
call fcn.00454280
movsx ecx, ax
cmp edi, ecx
jl 0x4070c1
mov edx, dword [esp + 0x1c]
xor edi, edi
lea ecx, [edx + 0x14]
call fcn.00454280
test ax, ax
jle 0x407148
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + 0x14]
call fcn.004541f0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x71]
push ecx
push 1
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x7d], al
call fcn.004085a0
mov eax, dword [esp + 0x1c]
inc edi
lea ecx, [eax + 0x14]
call fcn.00454280
movsx ecx, ax
cmp edi, ecx
jl 0x40710e
lea edx, [esp + 0x78]
push 1
push edx
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
sub esp, 0x24
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], esp
mov edi, esp
push ecx
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.004080f0
add edi, 0x10
lea edx, [esp + 0xac]
push edx
mov ecx, edi
mov byte [esp + 0x124], 0xe
call fcn.00408160
mov al, byte [esp + 0xbc]
mov byte [esp + 0x120], 5
mov byte [edi + 0x10], al
mov ecx, dword [0x512d20]
call fcn.0046e5e0
lea ecx, [esp + 0x60]
call fcn.00453d60
push ecx
mov byte [esp + 0x100], 0xf
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x80]
call fcn.0046f1a0
lea ecx, [esp + 0x64]
call fcn.00454080
lea ecx, [esp + 0x60]
call fcn.00454280
test ax, ax
jle 0x40732d
xor ebx, ebx
xor ebp, ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x407269
mov edi, dword [esp + 0x40]
sub edi, eax
cmp ebp, edi
jae 0x407269
movzx dx, byte [eax + ebp]
push edx
lea ecx, [esp + 0x64]
call fcn.004541f0
sub edi, ebp
and eax, 0xff
lea ecx, [edi*8 - 8]
shl eax, cl
add ebx, eax
inc ebp
jmp 0x407233
test ebx, ebx
jbe 0x40732d
mov edi, ebx
lea ecx, [esp + 0x60]
imul edi, dword [esp + 0x28]
call fcn.00454280
movsx ecx, di
movsx eax, ax
add ecx, 2
cmp eax, ecx
jl 0x40732d
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xb4]
push edx
call fcn.00453d70
xor ebp, ebp
mov byte [esp + 0xfc], 0x10
test ebx, ebx
jbe 0x407319
mov eax, dword [esp + 0x54]
mov edi, ebp
imul edi, dword [esp + 0x28]
movzx cx, byte [eax]
add ecx, edi
push ecx
lea ecx, [esp + 0x64]
call fcn.004541f0
push eax
push 4
lea ecx, [esp + 0xbc]
call fcn.00454200
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x60]
movzx ax, byte [edx + 1]
add eax, edi
push eax
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xbc]
call fcn.00454200
mov eax, dword [esi + 8]
lea ecx, [esp + 0xb4]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebp
cmp ebp, ebx
jb 0x4072b1
lea ecx, [esp + 0xb4]
mov byte [esp + 0xfc], 0xf
call fcn.00453ea0
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x60]
jmp 0x407ec1
mov edx, dword [esp + 0x1c]
push ebp
lea ecx, [edx + 0xc]
call fcn.004541f0
xor bx, bx
xor edi, edi
mov bl, al
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0x10]
call fcn.00454280
test ax, ax
jle 0x4073a1
mov ecx, dword [esp + 0x1c]
push edi
add ecx, 0x10
call fcn.004541f0
lea edx, [esp + 0x73]
mov byte [esp + 0x73], al
mov eax, dword [esp + 0x58]
push edx
push 1
push eax
lea ecx, [esp + 0x5c]
call fcn.004085a0
mov ecx, dword [esp + 0x1c]
inc edi
add ecx, 0x10
call fcn.00454280
movsx edx, ax
cmp edi, edx
jl 0x407367
mov eax, dword [esp + 0x1c]
xor edi, edi
lea ecx, [eax + 0x14]
call fcn.00454280
test ax, ax
jle 0x4073ee
mov ecx, dword [esp + 0x1c]
push edi
add ecx, 0x14
call fcn.004541f0
lea edx, [esp + 0x6c]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x40]
push edx
push 1
push eax
lea ecx, [esp + 0x44]
call fcn.004085a0
mov ecx, dword [esp + 0x1c]
inc edi
add ecx, 0x14
call fcn.00454280
movsx edx, ax
cmp edi, edx
jl 0x4073b4
lea eax, [esp + 0x78]
push 1
push eax
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov edx, dword [ecx]
call dword [edx + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
mov al, byte [esp + 0x78]
sub esp, 0x24
mov edi, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], edi
mov byte [edi], al
call fcn.00481290
cmp eax, ebp
jge 0x407467
xor eax, eax
shl eax, 4
push eax
call fcn.004dbc04
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00408220
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea eax, [esp + 0xac]
lea ecx, [edi + 0x10]
push eax
mov byte [esp + 0x124], 0x11
call fcn.00405d60
mov ecx, dword [0x512d20]
mov byte [esp + 0x120], 5
call fcn.0046e5e0
lea ecx, [esp + 0x34]
call fcn.00453d60
push ecx
mov byte [esp + 0x100], 0x12
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
lea ecx, [esp + 0x80]
call fcn.0046f1a0
lea ecx, [esp + 0x38]
call fcn.00454080
lea ecx, [esp + 0x34]
call fcn.00454280
test ax, ax
jle 0x4076bd
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp byte [eax], 0xff
jne 0x4075d9
lea ecx, [esp + 0x34]
call fcn.00454280
movsx eax, ax
movsx ecx, bx
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x3c]
mov cl, byte [eax]
test edi, edi
jbe 0x407619
cmp cl, 0xff
je 0x407622
mov ebx, edi
lea ecx, [esp + 0x34]
imul ebx, dword [esp + 0x28]
call fcn.00454280
cmp ax, bx
jl 0x4076bd
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xbc]
push eax
call fcn.00453d70
xor ebp, ebp
mov byte [esp + 0xfc], 0x13
test edi, edi
jbe 0x4075c5
push 0
push 4
lea ecx, [esp + 0xc4]
call fcn.00454200
mov edx, dword [esp + 0x54]
mov ecx, ebp
imul ecx, dword [esp + 0x28]
movzx ax, byte [edx]
add ecx, eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xc4]
call fcn.00454200
mov eax, dword [esi + 8]
lea ecx, [esp + 0xbc]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebp
cmp ebp, edi
jb 0x407571
mov byte [esp + 0xfc], 0x12
lea ecx, [esp + 0xbc]
jmp 0x4076b8
xor ebx, ebx
test eax, eax
je 0x407526
mov ebp, dword [esp + 0x40]
sub ebp, eax
cmp ebx, ebp
jae 0x407526
movzx dx, byte [eax + ebx]
push edx
lea ecx, [esp + 0x38]
call fcn.004541f0
sub ebp, ebx
and eax, 0xff
lea ecx, [ebp*8 - 8]
shl eax, cl
add edi, eax
mov eax, dword [esp + 0x3c]
inc ebx
jmp 0x4075db
cmp cl, 0xff
jne 0x4076bd
lea ecx, [esp + 0x34]
call fcn.00454280
cmp ax, word [esp + 0x28]
jl 0x4076bd
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xb0]
push edx
call fcn.00453d70
xor ebp, ebp
mov byte [esp + 0xfc], 0x14
test edi, edi
jbe 0x4076a9
push 0
push 4
lea ecx, [esp + 0xb8]
call fcn.00454200
mov ecx, dword [esp + 0x54]
mov eax, ebp
imul eax, dword [esp + 0x28]
movzx dx, byte [ecx]
add eax, edx
lea ecx, [esp + 0x34]
push eax
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xb8]
call fcn.00454200
mov eax, dword [esi + 8]
lea ecx, [esp + 0xb0]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebp
cmp ebp, edi
jb 0x407655
mov byte [esp + 0xfc], 0x12
lea ecx, [esp + 0xb0]
call fcn.00453ea0
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x34]
jmp 0x407ec1
mov edx, dword [esp + 0x1c]
push ebp
lea ecx, [edx + 0xc]
call fcn.004541f0
mov eax, dword [esp + 0x1c]
xor edi, edi
lea ecx, [eax + 0x10]
call fcn.00454280
test ax, ax
jle 0x407728
mov ecx, dword [esp + 0x1c]
push edi
add ecx, 0x10
call fcn.004541f0
lea edx, [esp + 0x6a]
mov byte [esp + 0x6a], al
mov eax, dword [esp + 0x58]
push edx
push 1
push eax
lea ecx, [esp + 0x5c]
call fcn.004085a0
mov ecx, dword [esp + 0x1c]
inc edi
add ecx, 0x10
call fcn.00454280
movsx edx, ax
cmp edi, edx
jl 0x4076ee
mov eax, dword [esp + 0x1c]
xor edi, edi
lea ecx, [eax + 0x14]
call fcn.00454280
test ax, ax
jle 0x407775
mov ecx, dword [esp + 0x1c]
push edi
add ecx, 0x14
call fcn.004541f0
lea edx, [esp + 0x6d]
mov byte [esp + 0x6d], al
mov eax, dword [esp + 0x40]
push edx
push 1
push eax
lea ecx, [esp + 0x44]
call fcn.004085a0
mov ecx, dword [esp + 0x1c]
inc edi
add ecx, 0x14
call fcn.00454280
movsx edx, ax
cmp edi, edx
jl 0x40773b
lea eax, [esp + 0x78]
push 1
push eax
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov edx, dword [ecx]
call dword [edx + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
mov al, byte [esp + 0x78]
sub esp, 0x24
mov edi, esp
mov dword [esp + 0x34], esp
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], edi
mov byte [edi], al
call fcn.00481290
cmp eax, ebp
jge 0x4077ee
xor eax, eax
shl eax, 4
push eax
call fcn.004dbc04
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00408220
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
add edi, 0x10
lea eax, [esp + 0xac]
push eax
mov ecx, edi
mov byte [esp + 0x124], 0x15
call fcn.00408160
mov cl, byte [esp + 0xbc]
mov byte [esp + 0x120], 5
mov byte [edi + 0x10], cl
mov ecx, dword [0x512d20]
call fcn.0046e5e0
lea ecx, [esp + 0xc4]
call fcn.00453d60
push ecx
lea ecx, [esp + 0x7c]
mov edx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x104], 0x16
call fcn.0046f1a0
lea ecx, [esp + 0xc8]
call fcn.00454080
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x18]
call fcn.00454280
mov ecx, dword [esp + 0x54]
mov edi, eax
movzx dx, byte [ecx]
push edx
lea ecx, [esp + 0xc8]
call fcn.004541f0
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0xa4]
call fcn.00453d70
movsx ebx, di
xor ebp, ebp
mov byte [esp + 0xfc], 0x17
test ebx, ebx
jle 0x407938
mov ecx, dword [esp + 0x1c]
push ebp
add ecx, 0x18
call fcn.004541f0
mov dl, byte [esp + 0x70]
test dl, al
jbe 0x407933
mov eax, dword [esp + 0x1c]
lea edi, [ebp + ebp]
push edi
lea ecx, [eax + 0x1c]
call fcn.004541f0
push eax
push 4
lea ecx, [esp + 0xa8]
call fcn.00454200
mov ecx, dword [esp + 0x1c]
inc edi
push edi
add ecx, 0x1c
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xa8]
call fcn.00454200
mov eax, dword [esi + 8]
lea edx, [esp + 0xa0]
push edx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebp
cmp ebp, ebx
jl 0x4078cc
lea ecx, [esp + 0xa0]
mov byte [esp + 0xfc], 0x16
call fcn.00453ea0
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0xc4]
jmp 0x407ec1
mov eax, dword [esp + 0x1c]
push ebp
lea ecx, [eax + 0xc]
call fcn.004541f0
mov edx, dword [esp + 0x1c]
xor cx, cx
mov cl, al
xor edi, edi
mov word [esp + 0x28], cx
lea ecx, [edx + 0x10]
call fcn.00454280
test ax, ax
jle 0x4079c4
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + 0x10]
call fcn.004541f0
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x6e]
push ecx
push 1
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7a], al
call fcn.004085a0
mov eax, dword [esp + 0x1c]
inc edi
lea ecx, [eax + 0x10]
call fcn.00454280
movsx ecx, ax
cmp edi, ecx
jl 0x40798a
mov edx, dword [esp + 0x1c]
xor edi, edi
lea ecx, [edx + 0x14]
call fcn.00454280
test ax, ax
jle 0x407a11
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + 0x14]
call fcn.004541f0
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x17]
push ecx
push 1
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.004085a0
mov eax, dword [esp + 0x1c]
inc edi
lea ecx, [eax + 0x14]
call fcn.00454280
movsx ecx, ax
cmp edi, ecx
jl 0x4079d7
lea edx, [esp + 0x78]
push 1
push edx
push 1
lea ecx, [esp + 0x24]
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00453d70
mov ecx, dword [esp + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 1
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], eax
call fcn.00403fc0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00453d70
mov ecx, dword [0x512d20]
call fcn.0046e6b0
mov cl, byte [esp + 0x78]
sub esp, 0x24
mov edi, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x34], edi
mov byte [edi], cl
mov ecx, dword [esp + 0xa0]
cmp ecx, ebp
jne 0x407a87
xor eax, eax
jmp 0x407a93
mov eax, dword [esp + 0xa4]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jge 0x407a99
xor eax, eax
shl eax, 4
push eax
call fcn.004dbc04
add esp, 4
mov dword [edi + 4], eax
mov edx, dword [esp + 0xa4]
mov ecx, edi
push eax
mov eax, dword [esp + 0xa4]
push edx
push eax
call fcn.00408220
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea ecx, [esp + 0xac]
add edi, 0x10
push ecx
mov ecx, edi
mov byte [esp + 0x124], 0x18
call fcn.00408080
mov dl, byte [esp + 0xbc]
mov byte [esp + 0x120], 5
mov byte [edi + 0x10], dl
mov ecx, dword [0x512d20]
call fcn.0046e5e0
lea ecx, [esp + 0x2c]
call fcn.00453d60
push ecx
lea ecx, [esp + 0x7c]
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov byte [esp + 0x104], 0x19
call fcn.0046f1a0
lea ecx, [esp + 0x30]
call fcn.00454080
lea ecx, [esp + 0x2c]
call fcn.00454280
test ax, ax
jle 0x407eb5
mov eax, dword [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0xac], ebp
cmp byte [eax], 0xff
jne 0x407b6f
lea ecx, [esp + 0x2c]
call fcn.00454280
movsx ecx, word [esp + 0x28]
movsx eax, ax
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xac], ebp
jmp 0x407bae
xor ebx, ebx
test eax, eax
je 0x407ba7
mov edi, dword [esp + 0x40]
sub edi, eax
cmp ebx, edi
jae 0x407ba7
movzx dx, byte [eax + ebx]
push edx
lea ecx, [esp + 0x30]
call fcn.004541f0
sub edi, ebx
and eax, 0xff
lea ecx, [edi*8 - 8]
shl eax, cl
add ebp, eax
mov eax, dword [esp + 0x3c]
inc ebx
jmp 0x407b71
mov dword [esp + 0xac], ebp
mov cl, byte [eax]
test ebp, ebp
jbe 0x407c99
cmp cl, 0xff
je 0x407ca2
mov edi, ebp
lea ecx, [esp + 0x2c]
imul edi, dword [esp + 0x28]
call fcn.00454280
cmp ax, di
jl 0x407eb5
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xa4]
push eax
call fcn.00453d70
xor ebx, ebx
mov byte [esp + 0xfc], 0x1a
test ebp, ebp
jbe 0x407c85
mov ecx, dword [esp + 0x54]
mov edi, ebx
imul edi, dword [esp + 0x28]
movzx dx, byte [ecx]
add edx, edi
lea ecx, [esp + 0x2c]
push edx
call fcn.004541f0
test al, al
je 0x407c7c
mov eax, dword [esp + 0x54]
movzx cx, byte [eax]
add ecx, edi
push ecx
lea ecx, [esp + 0x30]
call fcn.004541f0
cmp al, 0xff
je 0x407c7c
push 0
push 4
lea ecx, [esp + 0xac]
call fcn.00454200
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
movzx ax, byte [edx]
add eax, edi
push eax
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0xac]
call fcn.00454200
mov eax, dword [esi + 8]
lea ecx, [esp + 0xa4]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00408340
inc ebx
cmp ebx, ebp
jb 0x407bfd
mov byte [esp + 0xfc], 0x19
lea ecx, [esp + 0xa4]
jmp 0x407eb0
cmp cl, 0xff
jne 0x407eb5
lea ecx, [esp + 0x2c]
call fcn.00454280
cmp ax, word [esp + 0x28]
jl 0x407eb5
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x64]
push edx
call fcn.00453d70
xor ebx, ebx
mov byte [esp + 0xfc], 0x1b
test ebp, ebp
mov dword [esp + 0xc8], ebx
jbe 0x407ea4
mov eax, dword [esp + 0x54]
mov edi, ebx
imul edi, dword [esp + 0x28]
movzx cx, byte [eax]
add ecx, edi
push ecx
lea ecx, [esp + 0x30]
call fcn.004541f0
test al, al
je 0x407e94
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
movzx ax, byte [edx]
add eax, edi
push eax
call fcn.004541f0
cmp al, 0xff
je 0x407e94
push 0
push 4
lea ecx, [esp + 0x6c]
call fcn.00454200
mov ecx, dword [esp + 0x54]
movzx dx, byte [ecx]
add edx, edi
lea ecx, [esp + 0x2c]
push edx
call fcn.004541f0
push eax
push 5
lea ecx, [esp + 0x6c]
call fcn.00454200
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x407e17
mov edx, dword [esi + 4]
test edx, edx
je 0x407d72
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x407d77
mov ecx, 1
test edx, edx
jne 0x407d7f
xor eax, eax
jmp 0x407d84
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x10], eax
jge 0x407d90
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.004dbc04
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.00404040
lea ecx, [esp + 0x64]
mov ebx, eax
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00408c40
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.00404040
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404010
mov eax, dword [esi + 4]
push eax
call fcn.004db420
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, esi
lea eax, [ebp + edx*4]
mov dword [esi + 0xc], eax
call fcn.00403ff0
mov ebx, dword [esp + 0xc8]
lea ecx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0xac]
mov dword [esi + 8], ecx
jmp 0x407e94
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x407e63
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00404040
mov eax, dword [esi + 8]
lea edx, [esp + 0x64]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00408c40
mov ecx, dword [esi + 8]
lea eax, [esp + 0x64]
push eax
push ecx
push edi
call fcn.00408d10
add esp, 0xc
jmp 0x407e90
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00404040
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.00408d50
lea edx, [esp + 0x70]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00408d10
add esp, 0x18
add dword [esi + 8], 4
inc ebx
cmp ebx, ebp
mov dword [esp + 0xc8], ebx
jb 0x407cdd
mov byte [esp + 0xfc], 0x19
lea ecx, [esp + 0x64]
call fcn.00453ea0
mov byte [esp + 0xfc], 5
lea ecx, [esp + 0x2c]
call fcn.00453ea0
xor ebp, ebp
cmp word [esp + 0x30], bp
je 0x407f61
inc byte [esp + 0xa8]
mov ecx, dword [esp + 0xa8]
push ecx
push 5
lea ecx, [esp + 0xc0]
call fcn.00454200
mov edx, dword [esp + 0x3c]
push edx
call fcn.004db420
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ebp
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x104], 3
call fcn.004db420
mov eax, dword [esp + 0xd4]
add esp, 8
inc eax
mov dword [esp + 0x54], ebp
cmp ax, word [esp + 0x10c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0xcc], eax
jge 0x407f8c
mov ebx, dword [esp + 0x4c]
jmp 0x4069c0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x30], ebp
mov byte [esp + 0xfc], 5
call fcn.00453ea0
mov eax, dword [esp + 0x3c]
push eax
call fcn.004db420
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov byte [esp + 0x100], 3
push ecx
call fcn.004db420
add esp, 8
mov ecx, dword [0x512d20]
call fcn.0046cfb0
lea ecx, [esp + 0x78]
mov byte [esp + 0xfc], 2
call fcn.0046ed80
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0xfc], 1
mov edi, eax
je 0x407fd0
mov ecx, esi
call fcn.00453ea0
add esi, 4
cmp esi, edi
jne 0x407fbe
mov esi, dword [esp + 0x1c]
push esi
call fcn.004db420
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0xfc], 0
call fcn.00453ea0
push ebp
call fcn.004db420
mov ecx, dword [esp + 0xf8]
mov ax, word [esp + 0x34]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 0x10
mov dword [esp + 0x30], ebp
jmp 0x407f61
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
push ecx
call fcn.004db420
mov edx, dword [esp + 0x58]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov byte [esp + 0x100], 3
push edx
jmp 0x407f84