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

Disassembly:
push 0xffffffffffffffff
push 0x54099b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x24], ecx
push ebp
mov eax, dword [ebx + 0x64]
mov ecx, dword [esp + 0xd8]
push esi
push edi
mov edi, dword [esp + 0xe4]
shr eax, 2
test ecx, ecx
jne 0x4a5ebc
dec eax
cmp edi, eax
jne 0x4a5ebc
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x4a5da5
push ebx
call fcn.004cae90
jmp 0x4a6ea9
push 0xd0
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov dword [esp + 0xd4], 0
je 0x4a5e88
mov eax, dword [0x58f614]
mov edi, dword [ebx + 0xcc]
mov dword [esi], eax
mov ecx, dword [0x58f614]
mov dword [esi + 4], ecx
lea ebp, [esi + 0x14]
push edi
mov ecx, ebp
mov byte [esp + 0xd8], 2
call fcn.004374c0
mov dword [ebp], 0x547f50
push edi
lea ecx, [esi + 0x34]
mov byte [esp + 0xd8], 3
call fcn.004272d0
lea ecx, [esi + 0x54]
mov byte [esp + 0xd4], 4
call fcn.00470b30
lea ecx, [esi + 0x68]
mov byte [esp + 0xd4], 5
call fcn.00470b30
lea ecx, [esi + 0x7c]
mov byte [esp + 0xd4], 6
call fcn.00470b30
lea ecx, [esi + 0x90]
mov byte [esp + 0xd4], 7
call fcn.00470b30
lea ecx, [esi + 0xa4]
mov byte [esp + 0xd4], 8
call fcn.00470b30
lea ecx, [esi + 0xb8]
mov byte [esp + 0xd4], 9
call fcn.00470b30
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x4a5e8a
xor esi, esi
push ebx
mov ecx, esi
mov dword [esp + 0xd8], 0xffffffff
call fcn.004cae90
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0xec]
or edx, 2
push esi
mov dword [esi + 0xc], edx
mov edx, dword [ecx + 8]
push edx
call fcn.00513650
jmp 0x4a6ea9
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x4a5eca
xor ebp, ebp
jmp 0x4a5ed0
mov ebp, dword [ebx + 0xc0]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x4a5edf
xor eax, eax
jmp 0x4a5ee2
mov eax, dword [ebx + 0x5c]
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x10], eax
mov edx, dword [eax + ecx*4]
mov ecx, ebx
add edx, ebp
push edx
call fcn.004ca8d0
test al, 2
je 0x4a61ff
push 0xd0
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov dword [esp + 0xd4], 0xa
je 0x4a5fe5
mov eax, dword [0x58f614]
mov edi, dword [ebx + 0xcc]
mov dword [esi], eax
mov ecx, dword [0x58f614]
mov dword [esi + 4], ecx
lea ebp, [esi + 0x14]
push edi
mov ecx, ebp
mov byte [esp + 0xd8], 0xc
call fcn.004374c0
mov dword [ebp], 0x547f50
push edi
lea ecx, [esi + 0x34]
mov byte [esp + 0xd8], 0xd
call fcn.004272d0
lea ecx, [esi + 0x54]
mov byte [esp + 0xd4], 0xe
call fcn.00470b30
lea ecx, [esi + 0x68]
mov byte [esp + 0xd4], 0xf
call fcn.00470b30
lea ecx, [esi + 0x7c]
mov byte [esp + 0xd4], 0x10
call fcn.00470b30
lea ecx, [esi + 0x90]
mov byte [esp + 0xd4], 0x11
call fcn.00470b30
lea ecx, [esi + 0xa4]
mov byte [esp + 0xd4], 0x12
call fcn.00470b30
lea ecx, [esi + 0xb8]
mov byte [esp + 0xd4], 0x13
call fcn.00470b30
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x4a5fe7
xor esi, esi
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xec]
mov edi, 1
push esi
or eax, edi
mov dword [esp + 0xd8], 0xffffffff
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 8]
push eax
call fcn.00513650
lea ecx, [esi + 0x54]
push 0
call fcn.00470df0
lea ebp, [esi + 0xb8]
push 0x6a
mov ecx, ebp
mov dword [esp + 0x50], 0
mov word [esp + 0x54], 0xffff
mov word [esp + 0x56], di
call fcn.00470e70
lea edx, [esp + 0x4c]
push 8
push edx
mov ecx, ebp
call fcn.004713f0
push 0
mov ecx, ebp
call fcn.00470df0
push 0
mov ecx, ebp
call fcn.00470df0
push 0x36
mov ecx, ebp
call fcn.00470e70
mov eax, dword [esp + 0xe0]
lea edi, [eax + 1]
mov eax, dword [esp + 0xe4]
cmp edi, eax
jg 0x4a60aa
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + edi*4]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0xdc]
push edx
call fcn.004ca8d0
test al, 2
je 0x4a60aa
mov eax, dword [esp + 0xe4]
inc edi
add ebx, 4
cmp edi, eax
jle 0x4a6082
mov eax, dword [esp + 0xe0]
dec edi
cmp eax, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
jg 0x4a61d8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0xc8]
add edi, edx
push eax
lea ecx, [esi + 0x54]
mov dword [esp + 0x2c], eax
mov bl, byte [edi]
call fcn.00470df0
cmp bl, 0x21
je 0x4a6199
mov edx, dword [esi + 0xc8]
cmp bl, 0x1d
mov dword [esp + 0x14], edx
jne 0x4a610d
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x90]
push eax
jmp 0x4a612c
cmp bl, 0x1e
jne 0x4a611c
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0x7c]
jmp 0x4a612c
cmp bl, 0x1b
jne 0x4a6131
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0xa4]
push edx
call fcn.00470df0
push edi
call fcn.004c7520
add esp, 4
mov ecx, ebp
push eax
push edi
call fcn.004713f0
cmp bl, 0x1d
jne 0x4a6168
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a6153
xor eax, eax
jmp 0x4a6156
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
mov ecx, esi
push edx
call fcn.004c8200
jmp 0x4a61c1
cmp bl, 0x1f
jne 0x4a61c1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a6186
mov ecx, dword [esp + 0x14]
xor eax, eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.004c8190
jmp 0x4a61c1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, esi
push eax
call fcn.004c8190
jmp 0x4a61c1
mov dl, byte [edi + 7]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
and edx, 1
push edx
mov edx, dword [esp + 0xe0]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x40]
push edi
push edx
call fcn.004a5ac0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x4a60c2
mov edi, ecx
push 1
mov ecx, ebp
call fcn.00470e70
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0x1c]
xor esi, esi
inc edi
mov dword [esp + 0xe0], edi
mov edi, dword [esp + 0xe4]
jmp 0x4a6206
mov esi, dword [esp + 0xe8]
cmp dword [esp + 0xe0], edi
jg 0x4a6ea9
test esi, esi
jne 0x4a6342
push 0xd0
mov dword [esp + 0x24], 1
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
mov dword [esp + 0xd4], 0x14
je 0x4a631a
mov eax, dword [0x58f614]
mov edi, dword [ebx + 0xcc]
mov dword [esi], eax
mov ecx, dword [0x58f614]
mov dword [esi + 4], ecx
lea ebp, [esi + 0x14]
push edi
mov ecx, ebp
mov byte [esp + 0xd8], 0x16
call fcn.004374c0
mov dword [ebp], 0x547f50
lea ebp, [esi + 0x34]
push edi
mov ecx, ebp
mov byte [esp + 0xd8], 0x17
call fcn.004374c0
mov dword [ebp], 0x547f50
lea ecx, [esi + 0x54]
mov byte [esp + 0xd4], 0x18
call fcn.00470b30
lea ecx, [esi + 0x68]
mov byte [esp + 0xd4], 0x19
call fcn.00470b30
lea ecx, [esi + 0x7c]
mov byte [esp + 0xd4], 0x1a
call fcn.00470b30
lea ecx, [esi + 0x90]
mov byte [esp + 0xd4], 0x1b
call fcn.00470b30
lea ecx, [esi + 0xa4]
mov byte [esp + 0xd4], 0x1c
call fcn.00470b30
lea ecx, [esi + 0xb8]
mov byte [esp + 0xd4], 0x1d
call fcn.00470b30
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 0xcc], edi
mov edi, dword [esp + 0xe4]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x4a631c
xor esi, esi
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xec]
or al, 2
push esi
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 8]
push eax
mov dword [esp + 0xdc], 0xffffffff
call fcn.00513650
jmp 0x4a634a
mov dword [esp + 0x20], 0
test edi, edi
mov dword [esp + 0x28], edi
jle 0x4a6381
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xe4]
lea edi, [edx + eax*4]
mov ecx, dword [edi]
add ecx, ebp
push ecx
mov ecx, ebx
call fcn.004ca8d0
cmp eax, 1
je 0x4a6381
mov eax, dword [esp + 0x28]
sub edi, 4
dec eax
test eax, eax
mov dword [esp + 0x28], eax
jg 0x4a6360
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xe0]
lea eax, [edx + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x4a63a9
cmp byte [eax + ebp - 1], 0x6d
jne 0x4a63a9
dec eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + ecx*4]
mov dword [esp + 0x10], edi
lea ecx, [edi + ebp + 1]
call fcn.004c7d90
test eax, eax
je 0x4a63e1
lea eax, [edi + ebp]
push eax
call fcn.004a85a0
add esp, 4
add edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 1
jmp 0x4a63e9
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
cmp edi, eax
jle 0x4a6404
mov ecx, edi
sub ecx, eax
add eax, ebp
push ecx
push eax
lea ecx, [esi + 0xb8]
call fcn.004713f0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4a643f
mov eax, dword [esi + 0xc8]
lea ecx, [esi + 0x54]
push eax
call fcn.00470df0
mov dl, byte [edi + ebp + 7]
mov ecx, dword [esp + 0xe4]
lea eax, [edi + ebp]
and edx, 1
push edx
mov edx, dword [esp + 0x2c]
push esi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ebx
call fcn.004a5ac0
lea ecx, [esp + 0xb8]
call fcn.00470b30
lea ecx, [esp + 0x90]
mov dword [esp + 0xd4], 0x1e
call fcn.00470b30
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0x1f
call fcn.00470b30
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd4], 0x20
call fcn.00470b30
lea eax, [esi + 0x54]
lea ecx, [esp + 0xb8]
push eax
mov byte [esp + 0xd8], 0x21
call fcn.00470fd0
lea edi, [esi + 0x7c]
lea ecx, [esp + 0x90]
push edi
call fcn.00470fd0
lea eax, [esi + 0x90]
lea ecx, [esp + 0x7c]
push eax
call fcn.00470fd0
lea eax, [esi + 0xa4]
lea ecx, [esp + 0xa4]
push eax
call fcn.00470fd0
mov eax, dword [ebx + 0x8c]
test eax, eax
jne 0x4a64e0
xor ebp, ebp
jmp 0x4a64e6
mov ebp, dword [ebx + 0x84]
mov eax, dword [ebx + 0x8c]
shr eax, 2
test eax, eax
jle 0x4a6524
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jl 0x4a6516
cmp eax, dword [esp + 0x10]
jge 0x4a6516
mov edx, dword [esp + 0x1c]
mov ecx, edi
sub eax, edx
push eax
call fcn.00470df0
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4a64f7
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov ecx, edi
and eax, ebp
push eax
call fcn.004713f0
lea ecx, [esp + 0x90]
call fcn.00470d30
mov eax, dword [ebx + 0xa0]
test eax, eax
jne 0x4a655d
xor edi, edi
jmp 0x4a6563
mov edi, dword [ebx + 0x98]
mov eax, dword [ebx + 0xa0]
shr eax, 2
test eax, eax
jle 0x4a65a2
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
cmp eax, ebp
jl 0x4a6592
cmp eax, dword [esp + 0x10]
jge 0x4a6592
sub eax, ebp
lea ecx, [esi + 0x90]
push eax
call fcn.00470df0
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4a6578
jmp 0x4a65a6
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
lea ecx, [esi + 0x90]
and eax, edi
push eax
call fcn.004713f0
lea ecx, [esp + 0x7c]
call fcn.00470d30
mov eax, dword [ebx + 0xb4]
test eax, eax
jne 0x4a65e0
xor edi, edi
jmp 0x4a65e6
mov edi, dword [ebx + 0xac]
mov eax, dword [ebx + 0xb4]
shr eax, 2
test eax, eax
jle 0x4a661f
mov dword [esp + 0x14], eax
mov eax, dword [edi]
cmp eax, ebp
jl 0x4a6611
cmp eax, dword [esp + 0x10]
jge 0x4a6611
sub eax, ebp
lea ecx, [esi + 0xa4]
push eax
call fcn.00470df0
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4a65f7
mov ecx, dword [esp + 0xb4]
mov ebp, dword [esp + 0xac]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
lea ecx, [esi + 0xa4]
and eax, ebp
push eax
call fcn.004713f0
lea ecx, [esp + 0xa4]
call fcn.00470d30
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0x2c]
sub edi, ecx
test eax, eax
je 0x4a666f
mov eax, dword [esp + 0x10]
inc edi
sub eax, 2
mov dword [esp + 0x10], eax
test edi, edi
jle 0x4a66a9
mov ecx, dword [esp + 0x34]
lea eax, [edi*4]
push eax
lea ebp, [esi + 0x54]
push ecx
mov ecx, ebp
call fcn.004713f0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a6695
xor ebp, ebp
jmp 0x4a6698
mov ebp, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
neg edx
push edx
push edi
push ebp
call fcn.004dd520
add esp, 0xc
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0xc0]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
lea ecx, [esi + 0x54]
and eax, edi
push eax
call fcn.004713f0
lea ecx, [esp + 0xb8]
call fcn.00470d30
lea ecx, [esp + 0x38]
call fcn.00470b30
mov eax, dword [ebx + 0x78]
mov byte [esp + 0xd4], 0x22
test eax, eax
jne 0x4a66f1
xor ebp, ebp
jmp 0x4a66f4
mov ebp, dword [ebx + 0x70]
mov ebx, dword [ebx + 0x78]
mov eax, 0x38e38e39
mul ebx
shr edx, 1
test edx, edx
mov dword [esp + 0x2c], ebp
jle 0x4a67d0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 1]
mov cl, byte [ebp]
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 5]
cmp eax, edx
mov byte [esp + 0x28], cl
jg 0x4a67ba
cmp edi, ebx
jl 0x4a67ba
cmp eax, ebx
jl 0x4a6772
cmp edi, edx
jg 0x4a6772
mov eax, dword [esp + 0x28]
lea ebp, [esi + 0x68]
push eax
mov ecx, ebp
call fcn.00470e70
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
sub ecx, ebx
push ecx
mov ecx, ebp
call fcn.00470df0
sub edi, ebx
mov ecx, ebp
push edi
call fcn.00470df0
mov ebp, dword [esp + 0x2c]
jmp 0x4a67b2
cmp cl, 3
je 0x4a677c
cmp cl, 2
jne 0x4a6784
cmp eax, ebx
jge 0x4a6784
cmp edi, edx
jg 0x4a67ba
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push edx
call fcn.00470e70
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
sub eax, ebx
lea ecx, [esp + 0x38]
push eax
call fcn.00470df0
sub edi, ebx
lea ecx, [esp + 0x38]
push edi
call fcn.00470df0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebp, 9
dec eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
jne 0x4a6718
mov edi, dword [esp + 0x48]
test edi, edi
jle 0x4a67fa
mov eax, 0x38e38e39
mov ecx, dword [esp + 0x40]
mul edi
push 0x4a5d20
push 9
shr edx, 1
push edx
push ecx
call fcn.00500a1e
mov edi, dword [esp + 0x58]
add esp, 0x10
mov eax, 0x38e38e39
mul edi
shr edx, 1
lea ecx, [edx - 1]
test ecx, ecx
mov dword [esp + 0x2c], ecx
jl 0x4a6e26
jmp 0x4a6818
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov eax, edi
neg eax
sbb eax, eax
and eax, ebp
lea edx, [eax + ecx*8]
mov eax, ecx
mov cl, byte [eax + edx]
add eax, edx
mov byte [esp + 0x28], cl
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 1]
and edx, 0xff
mov dword [esp + 0x18], ecx
mov ebp, dword [eax + 5]
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x4a6852
jmp dword [eax*4 + 0x4a6ec4]
xor ebp, ebp
cmp ecx, ebp
jge 0x4a6901
mov eax, dword [esi + 0xc8]
lea ebx, [esi + 0xb8]
cmp eax, ebp
jne 0x4a6877
xor edi, edi
jmp 0x4a687a
mov edi, dword [ebx + 8]
mov dword [esp + 0x14], ebp
push edi
mov ecx, esi
call fcn.004ca2b0
mov ebp, eax
cmp ebp, 0xffffffff
je case.default.0x4a6852
mov cl, byte [edi + ebp]
mov byte [esp + 0x27], cl
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a68a3
xor eax, eax
jmp 0x4a68a6
mov eax, dword [ebx + 8]
sub edi, eax
xor eax, eax
add ebp, edi
cmp cl, 0x51
sete al
inc eax
lea edx, [esp + 0x38]
mov edi, eax
mov ecx, edi
neg ecx
push ecx
mov ecx, dword [esp + 0x34]
push ebp
push edx
push esi
call fcn.004a6f10
push edi
push ebp
mov ecx, ebx
call fcn.00471570
cmp byte [esp + 0x27], 0x51
je case.default.0x4a6852
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a68e9
xor edi, edi
jmp 0x4a68ec
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x14]
add edi, ebp
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jle 0x4a687e
jmp case.default.0x4a6852
mov eax, dword [esi + 0xc8]
lea edi, [esi + 0xb8]
cmp eax, ebp
jne 0x4a6915
xor edx, edx
jmp 0x4a6918
mov edx, dword [edi + 8]
mov eax, dword [esi + 0xc8]
lea ebx, [eax + edx]
mov eax, dword [edi + 0x10]
cmp eax, ebp
je 0x4a692b
mov ebp, dword [edi + 8]
lea ebp, [ecx + ebp + 1]
mov ecx, ebp
call fcn.004c7bc0
add ebp, eax
cmp ebp, ebx
jb 0x4a6958
mov ebx, dword [esp + 0x20]
push 0
push ebx
mov ecx, esi
call fcn.004ca5f0
push 0x50
mov ecx, edi
call fcn.00470e70
push 0
push ebx
jmp 0x4a6975
push ebp
mov ecx, esi
call fcn.004ca2b0
cmp eax, 0xffffffff
jne 0x4a697c
push 0x50
mov ecx, edi
call fcn.00470e70
mov eax, dword [esp + 0x20]
push 0
push eax
mov ecx, esi
call fcn.004ca5f0
push 0x7251
mov ecx, edi
call fcn.00470e30
lea edi, [esi + 0x68]
push 1
jmp 0x4a6a12
test ecx, ecx
jge 0x4a69e1
mov eax, dword [esi + 0xc8]
lea ebx, [esi + 0xb8]
test eax, eax
jne 0x4a69aa
xor eax, eax
jmp 0x4a69ad
mov eax, dword [ebx + 8]
push eax
mov ecx, esi
call fcn.004ca320
mov edi, eax
cmp edi, 0xffffffff
je case.default.0x4a6852
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffffe
lea eax, [esp + 0x3c]
push edi
push eax
push esi
call fcn.004a6f10
push 2
push edi
mov ecx, ebx
call fcn.00471570
jmp case.default.0x4a6852
mov eax, dword [esi + 0xc8]
lea edi, [esi + 0xb8]
test eax, eax
jne 0x4a69f5
xor eax, eax
jmp 0x4a69f8
mov eax, dword [edi + 8]
lea ecx, [eax + ecx + 1]
call fcn.004c7bc0
push 0x7352
mov ecx, edi
call fcn.00470e30
lea edi, [esi + 0x68]
push 2
mov ecx, edi
call fcn.00470e70
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00470df0
mov eax, dword [esi + 0xc8]
mov ecx, edi
dec eax
push eax
call fcn.00470df0
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, esi
call fcn.004ca5f0
jmp case.default.0x4a6852
mov eax, dword [esi + 0xc8]
lea ebx, [esi + 0xb8]
test ecx, ecx
jge 0x4a6b1b
test eax, eax
jne 0x4a6a63
xor edi, edi
jmp 0x4a6a66
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x54]
call fcn.00470b30
push 0x70
lea ecx, [esp + 0x58]
mov byte [esp + 0xd8], 0x23
call fcn.00470e70
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + ebp + 1]
dec eax
mov dx, word [edi + ebp + 5]
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
dec ecx
push eax
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
mov ecx, esi
call fcn.004ca780
test ebp, ebp
jne 0x4a6ab8
push 0x55
lea ecx, [esp + 0x58]
call fcn.00470e70
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, ecx
push ecx
neg eax
sbb eax, eax
mov edi, ecx
and eax, edx
mov ecx, ebx
push eax
push 0
call fcn.00471350
push edi
lea ecx, [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push esi
call fcn.004a6f10
lea edx, [esp + 0x18]
push 4
push edx
push 0
lea ecx, [esi + 0x54]
mov dword [esp + 0x24], 0
add ebp, edi
call fcn.00471350
mov byte [esp + 0xd4], 0x22
mov dword [esp + 0x54], 0x5477b0
lea ecx, [esp + 0x54]
jmp 0x4a6baa
test eax, eax
jne 0x4a6b23
xor edi, edi
jmp 0x4a6b26
mov edi, dword [ebx + 8]
lea edi, [edi + ecx + 1]
lea ecx, [esp + 0x68]
call fcn.00470b30
push 0x7155
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd8], 0x24
call fcn.00470e30
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
dec eax
mov dx, word [edi + 4]
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
inc ecx
push eax
push ecx
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, esi
call fcn.004ca780
mov ecx, dword [esp + 0x78]
mov ebp, dword [esi + 0xc8]
mov edi, dword [esp + 0x70]
mov eax, ecx
inc ebp
push ecx
neg eax
sbb eax, eax
mov ecx, ebx
and eax, edi
push eax
call fcn.004713f0
push ebp
lea ecx, [esi + 0x54]
call fcn.00470df0
mov byte [esp + 0xd4], 0x22
mov dword [esp + 0x68], 0x5477b0
lea ecx, [esp + 0x68]
call fcn.00470d30
lea edi, [esi + 0x68]
push 3
mov ecx, edi
call fcn.00470e70
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x4a6e08
mov eax, dword [esi + 0xc8]
lea ebx, [esi + 0xb8]
xor edx, edx
cmp ebp, eax
mov eax, dword [ebx + 0x10]
setl dl
test eax, eax
mov dword [esp + 0x14], edx
jne 0x4a6be7
xor eax, eax
jmp 0x4a6bea
mov eax, dword [ebx + 8]
test ecx, ecx
mov dword [esp + 0x10], eax
jl 0x4a6bf8
add eax, ecx
mov dword [esp + 0x10], eax
cmp byte [eax], 0x6d
jne 0x4a6c05
test ecx, ecx
jl 0x4a6c05
xor edi, edi
jmp 0x4a6c20
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.004ca3a0
mov edi, eax
cmp edi, 0xffffffff
je case.default.0x4a6852
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor edx, edx
add eax, edi
test ecx, ecx
setl dl
dec edx
mov dword [esp + 0x10], eax
and edx, ecx
add edi, edx
xor edx, edx
mov dl, byte [eax]
mov eax, edx
add eax, 0xffffffad
cmp eax, 0x1b
ja case.0x4a6c50.87
xor edx, edx
mov dl, byte [eax + 0x4a6ee8]
jmp dword [edx*4 + 0x4a6ed4]
mov ecx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x3c]
push edi
push eax
push esi
mov dword [esp + 0x28], edi
call fcn.004a6f10
lea ecx, [esp + 0x27]
push 1
push ecx
push edi
mov ecx, ebx
mov byte [esp + 0x33], 0x6d
call fcn.00471350
cmp dword [esp + 0x14], 1
jne 0x4a6d1c
inc ebp
jmp 0x4a6d1c
mov eax, dword [esp + 0x10]
cmp byte [eax + 1], 0x6e
jne 0x4a6ca7
mov byte [eax], 0x6d
mov ecx, edi
mov dword [esp + 0x18], ecx
jmp case.0x4a6c50.87
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffffe
lea edx, [esp + 0x3c]
push edi
push edx
push esi
mov dword [esp + 0x28], 0xffffffff
call fcn.004a6f10
push 2
push edi
mov ecx, ebx
call fcn.00471570
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a6cd6
xor eax, eax
jmp 0x4a6cd9
mov eax, dword [ebx + 8]
add eax, edi
push 0
push eax
mov ecx, esi
call fcn.004ca1d0
cmp eax, 0xffffffff
je 0x4a6d1c
lea edi, [eax + edi - 1]
push 0xfffffffffffffffe
lea eax, [esp + 0x3c]
push edi
push eax
jmp 0x4a6d08
push 0xfffffffffffffffe
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x20], 0xffffffff
push ecx
mov ecx, dword [esp + 0x3c]
push esi
call fcn.004a6f10
push 2
push edi
mov ecx, ebx
call fcn.00471570
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je case.default.0x4a6852
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a6df7
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a6d40
xor edi, edi
jmp 0x4a6d43
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
lea edi, [edi + ecx + 1]
test eax, eax
jne 0x4a6d52
xor ecx, ecx
jmp 0x4a6d55
mov ecx, dword [ebx + 8]
mov eax, dword [esi + 0xc8]
lea ebp, [eax + ecx]
cmp byte [edi], 0x6f
je 0x4a6dd6
inc edi
mov ecx, edi
call fcn.004c7bc0
add edi, eax
cmp edi, ebp
jae 0x4a6d88
push 0
push edi
mov ecx, esi
call fcn.004ca1d0
test eax, eax
jl 0x4a6d83
add edi, eax
jmp 0x4a6d5e
cmp eax, 0xfffffffe
jne 0x4a6d98
mov edi, dword [esp + 0x20]
push 0
push edi
mov ecx, esi
call fcn.004ca5f0
jmp 0x4a6d9c
mov edi, dword [esp + 0x20]
push 0x6f53
mov ecx, ebx
call fcn.00470e30
push 0
push edi
mov ecx, esi
call fcn.004ca5f0
push 0x7454
mov ecx, ebx
call fcn.00470e30
mov ebp, dword [esi + 0xc8]
push 0
push edi
mov ecx, esi
dec ebp
call fcn.004ca5f0
cmp ebp, 0xffffffff
jne 0x4a6df7
jmp 0x4a6dda
mov edi, dword [esp + 0x20]
push 0x7454
mov ecx, ebx
call fcn.00470e30
mov ebp, dword [esi + 0xc8]
push 0
push edi
mov ecx, esi
dec ebp
call fcn.004ca5f0
lea edi, [esi + 0x68]
push 4
mov ecx, edi
call fcn.00470e70
mov edx, dword [esp + 0x18]
push edx
mov ecx, edi
call fcn.00470df0
push ebp
mov ecx, edi
call fcn.00470df0
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esp + 0x2c], ecx
jns 0x4a6814
mov esi, 0x5477b0
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 0x21
mov dword [esp + 0x38], esi
call fcn.00470d30
lea ecx, [esp + 0xa4]
mov byte [esp + 0xd4], 0x20
mov dword [esp + 0xa4], esi
call fcn.00470d30
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0x1f
mov dword [esp + 0x7c], esi
call fcn.00470d30
lea ecx, [esp + 0x90]
mov byte [esp + 0xd4], 0x1e
mov dword [esp + 0x90], esi
call fcn.00470d30
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd4], 0xffffffff
mov dword [esp + 0xb8], esi
call fcn.00470d30
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 0x14