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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x28]
push esi
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x2c]
push edi
mov edi, ecx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov esi, dword [edi + 8]
mov byte [esp + 0x4e], al
mov eax, dword [edi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], esi
test esi, esi
jne 0x4a8570
cmp dword [edi + 0x78], esi
jne 0x4a8561
test byte [eax + 0x44], 8
jne 0x4a8561
mov byte [edi + 0x17], 1
call fcn.00478320
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x60], esi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x2c], eax
jne 0x4a8590
mov dword [esp + 0x3c], 0
mov dword [esp + 0x58], 1
jmp 0x4a85c0
mov edx, dword [edx + 8]
mov dword [esp + 0x3c], edx
test edx, edx
je 0x4a85b8
nop dword [eax + eax]
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x4a85b0
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x4a85a0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x58], ecx
xor ecx, ecx
mov dword [esp + 0x44], 2
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x4a87bb
xor edx, edx
mov dword [esp + 0x1c], edx
nop dword [eax]
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp ecx, eax
je 0x4a87a3
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4a8602
cmp dword [eax + ecx*4], 0
jl 0x4a87a3
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov al, byte [eax + edx + 0xc]
movzx edi, al
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x18]
test al, al
je 0x4a87a3
mov ah, byte [ebp + 0x20]
cmp ah, 0xa
jne 0x4a8637
cmp al, ah
jne 0x4a8637
mov edi, 2
jmp 0x4a8658
cmp ah, 0xa
movzx edi, ah
cmove edi, dword [esp + 0x30]
cmp edi, 5
jne 0x4a8658
mov eax, dword [esp + 0x28]
cmp dword [eax + edx + 4], 0
mov eax, 2
cmove edi, eax
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x4a8664
jmp dword [eax*4 + 0x4a99f4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x14]
mov byte [ecx + 0x15], 1
mov eax, dword [eax + 4]
jmp 0x4a8688
mov eax, dword [esp + 0x28]
mov eax, dword [eax + edx]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push 0x597f54
push dword [esp + 0x68]
call fcn.0045b650
mov ecx, dword [esp + 0x34]
mov edx, 0x41
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
inc eax
add ecx, eax
push ecx
push edi
push 0x513
mov ecx, esi
call fcn.00478530
mov ecx, dword [esi]
add esp, 0x1c
mov edx, dword [esp + 0x28]
cmp byte [ecx + 0x49], 0
je 0x4a86e0
push edx
mov edx, 0xfffffff9
call fcn.00479010
add esp, 4
jmp 0x4a86f5
mov eax, dword [esi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x88]
mov edi, dword [esp + 0x18]
test eax, eax
jle 0x4a879f
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4a879f
mov eax, dword [ebp + 0x14]
mov edx, 0x32
push dword [ebp + 0x24]
inc eax
add eax, ecx
mov ecx, esi
push eax
call fcn.00478680
mov edi, dword [esp + 0x20]
add esp, 8
jmp 0x4a879f
mov edi, dword [ebp + 0x14]
mov edx, 0x33
inc edi
add edi, ecx
mov ecx, esi
push edi
call fcn.00478610
mov dword [esp + 0x34], eax
add esp, 4
mov eax, dword [esp + 0x14]
push edi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [edx + eax + 4]
call fcn.00493560
mov ecx, dword [esp + 0x34]
add esp, 4
mov edx, dword [esi + 0x88]
test ecx, ecx
jns 0x4a8784
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
je 0x4a8793
mov eax, 0x59f36c
jmp 0x4a879c
mov eax, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], 0x10
inc ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x4a85e0
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
test edx, edx
je 0x4a8a33
mov eax, dword [esp + 0x5c]
test dword [eax + 0x1c], 0x200
jne 0x4a8a33
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x38], eax
mov al, byte [ebp + 0x20]
cmp al, 0xa
je 0x4a87f7
movzx eax, al
mov dword [esp + 0x1c], eax
jmp 0x4a87ff
mov dword [esp + 0x1c], 2
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [edx], ecx
jle 0x4a8a2c
lea eax, [edx + 8]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x50]
mov eax, dword [eax - 4]
mov dword [esp + 0x6c], eax
test edx, edx
je 0x4a8881
mov dword [esp + 0x98], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x84], 0x4a84b0
mov dword [esp + 0x98], edx
test eax, eax
je 0x4a886a
mov edx, eax
lea ecx, [esp + 0x80]
call fcn.0048ab90
mov ecx, dword [esp + 0x24]
cmp byte [ebp + 0x1c], 0
mov al, byte [esp + 0x94]
jne 0x4a8879
and al, 0xfd
test al, al
je 0x4a8a0c
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov edi, dword [ecx + 0x44]
lea eax, [edi + 1]
mov dword [ecx + 0x44], eax
lea eax, [edi - 1]
test edi, eax
jne 0x4a88b6
mov edx, dword [ecx + 0x48]
lea eax, [edi*8 + 4]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00459770
mov ecx, dword [esp + 0x38]
add esp, 8
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x4a88c4
mov dword [eax + edi*4], 0xffffffff
push 0x10
not edi
push edi
push dword [esp + 0x74]
push dword [esp + 0x24]
call fcn.00493900
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, 4
jne 0x4a8945
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a890b
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.004784f0
add esp, 0xc
jmp 0x4a89ed
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4a89ed
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
test edx, edx
jne 0x4a895d
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
cmp eax, 5
mov ecx, 2
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x4a899f
cmp dword [edx + 0x78], ecx
jne 0x4a898c
mov eax, dword [edx]
test byte [eax + 0x44], 8
jne 0x4a898c
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.00478320
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
cmp eax, 2
jne 0x4a89b0
mov ecx, dword [edx + 0x78]
test ecx, ecx
cmovne edx, ecx
mov byte [edx + 0x15], 1
mov ecx, dword [esp + 0x2c]
mov edx, 0x42
push 0
push dword [esp + 0x2c]
push 0
push eax
push 0x113
call fcn.00478930
mov eax, dword [esp + 0x40]
add esp, 0x14
mov ecx, dword [eax + 0x88]
test ecx, ecx
jle 0x4a89ed
mov eax, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x4a8a08
lea eax, [edi*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
inc ecx
mov eax, dword [esp + 0x38]
add eax, 0x18
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
cmp ecx, dword [edx]
jl 0x4a8814
mov edi, dword [esp + 0x18]
mov dword [edi + 0x38], 0
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x78], 0x35
je 0x4a8e64
cmp dword [esp + 0x3c], 0
jne 0x4a8e64
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x24], edx
lea eax, [edx + 1]
mov dword [ecx + 0x44], eax
lea eax, [edx - 1]
test edx, eax
jne 0x4a8a8d
lea eax, [edx*8 + 4]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx]
push 0
push eax
call fcn.00459770
mov ecx, dword [esp + 0x38]
add esp, 8
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x4a8a9b
mov dword [eax + edx*4], 0xffffffff
cmp byte [ebp + 0x20], 0xa
not edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
movzx eax, byte [ecx + 0x30]
je 0x4a8ab5
movzx eax, byte [ebp + 0x20]
jmp 0x4a8abd
cmp eax, 0xa
cmove eax, dword [esp + 0x44]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x4a8b3f
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a8aed
push dword [ebp + 0x18]
mov ecx, esi
push edx
push dword [ebp + 0x14]
mov edx, 0x35
call fcn.004784f0
add esp, 0xc
jmp 0x4a8b21
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x4a8b3b
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], 5
jne 0x4a8bd9
cmp byte [ebp + 0x20], 5
je 0x4a8bd9
mov eax, dword [ecx + 8]
test eax, eax
je 0x4a8bd9
nop
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x4a8b76
cmp cl, 3
je 0x4a8b76
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4a8b60
jmp 0x4a8bd9
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x64], edx
cmp dword [eax + 0x30], edx
jg 0x4a8ba3
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004784f0
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x4a8bd9
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a8c04
push dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x20
call fcn.004784f0
add esp, 0xc
jmp 0x4a8c38
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 4
ja case.default.0x4a8c46
jmp dword [eax*4 + 0x4a9a04]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
test dword [eax + 0x1c], 0x2000
je 0x4a8cb4
mov eax, dword [edi]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], ecx
test dword [eax + 0x1c], 0x40000
je 0x4a8c88
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004b9c90
mov dword [esp + 0x28], eax
xor edx, edx
jmp 0x4a8c8a
xor eax, eax
mov ecx, eax
test eax, eax
je 0x4a8ca3
cmp byte [ecx + 8], 0x6d
jne 0x4a8c9c
movzx eax, byte [ecx + 9]
or edx, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4a8c90
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4a8d02
mov edx, dword [esp + 0x14]
mov ecx, edi
push 0
push 0
call fcn.004a5f30
add esp, 8
test eax, eax
jne 0x4a8d02
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], eax
je 0x4a8d35
mov eax, dword [edi + 0x78]
mov ecx, edi
test eax, eax
push 0xffffffffffffffff
cmovne ecx, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.004a05d0
add esp, 0x10
mov dword [esp + 0x68], 1
jmp 0x4a8dad
mov eax, dword [edi + 0x78]
mov ecx, edi
mov edx, dword [esp + 0x14]
test eax, eax
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, edi
push dword [esp + 0x48]
call fcn.004a01c0
add esp, 0x24
mov dword [esp + 0x68], 1
jmp 0x4a8dad
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.004786f0
jmp 0x4a8dad
mov dword [esp + 0x1c], 2
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x4a8d84
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
mov eax, dword [eax + ecx*8]
push eax
push dword [edx]
push 0x5981fc
push dword [edi]
call fcn.0045b650
add esp, 0x10
mov edx, 0x613
jmp 0x4a8d9a
push dword [edx]
push str._s.rowid
push dword [edi]
call fcn.0045b650
add esp, 0xc
mov edx, 0xa13
push 2
push 0xfffffffffffffff9
push eax
push dword [esp + 0x28]
mov ecx, edi
call fcn.0049e0d0
add esp, 0x10
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x4a8dcc
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov edi, dword [esp + 0x64]
test edi, edi
je 0x4a8e64
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x70], ecx
cmp dword [eax + 0x30], ecx
jg 0x4a8e05
push 0
push 0
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004784f0
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4a8e3b
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x4a8e50
mov eax, 0x59f36c
jmp 0x4a8e61
test edi, edi
lea eax, [edx - 1]
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a9944
mov edx, dword [esp + 0x40]
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x4a9930
cmp byte [esp + 0x4e], 0
jne 0x4a8eac
mov eax, dword [ebp + 0x14]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.004a6dc0
add esp, 4
mov byte [esp + 0x4e], 1
mov edi, dword [esi + 0xc]
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x44], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x44], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x4a8eec
mov edx, dword [edi + 0x48]
lea eax, [ecx*8 + 4]
mov ecx, dword [edi]
push 0
push eax
call fcn.00459770
mov ecx, dword [esp + 0x4c]
add esp, 8
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4a8efa
mov dword [eax + ecx*4], 0xffffffff
mov edi, dword [esp + 0x20]
not ecx
mov dword [esp + 0x44], ecx
cmp dword [edi + 0x24], 0
je 0x4a8fdc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a8f3d
push 0
push edx
push 0
mov edx, 0x46
mov ecx, esi
call fcn.004784f0
add esp, 0xc
jmp 0x4a8f73
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
not eax
mov dword [ecx + 0x38], eax
mov edx, dword [edi + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
test edx, edx
je 0x4a8fa6
push 0
push 0
mov ecx, eax
call fcn.0048e300
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 8
jmp 0x4a8fa8
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x4a8fc2
push 0x10
push dword [esp + 0x48]
push edi
push ecx
call fcn.00493c70
mov eax, dword [esp + 0x38]
add esp, 0x10
test edi, edi
je 0x4a8fcf
mov edx, edi
mov ecx, eax
call fcn.0048e120
mov edi, dword [esp + 0x18]
mov dword [edi + 0x38], 0
jmp 0x4a8fe0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov edx, dword [ecx + eax*4]
lea eax, [edx + 1]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x34]
mov ecx, eax
cmp word [esp + 0x30], ax
jae 0x4a9168
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov edx, ecx
mov dword [esp + 0x38], ecx
jmp 0x4a9034
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x4a90b7
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + ecx + 4]
mov eax, dword [edi]
mov dword [esp + 0x28], eax
test edx, edx
je 0x4a907b
push 0
push 0
mov ecx, eax
call fcn.0048e300
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x28]
jmp 0x4a907d
xor edi, edi
cmp byte [eax + 0x49], 0
jne 0x4a909a
mov ecx, dword [esp + 0x1c]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00493560
mov eax, dword [esp + 0x2c]
add esp, 4
test edi, edi
je 0x4a90a7
mov edx, edi
mov ecx, eax
call fcn.0048e120
mov edi, dword [esp + 0x18]
mov dword [edi + 0x38], 0
jmp 0x4a913b
cmp edx, 0xffffffff
je 0x4a90d0
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4a90d0
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x4a90d3
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
sar edx, 0x1f
and edx, 1
add edx, 0x4c
cmp dword [eax + 0x30], ecx
jg 0x4a90fe
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
mov ecx, esi
call fcn.004784f0
add esp, 0xc
jmp 0x4a9137
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x38], 0x18
inc edx
inc dword [esp + 0x1c]
movzx ecx, word [eax + 0x34]
mov dword [esp + 0x2c], edx
cmp edx, ecx
jl 0x4a9030
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edx, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
movzx edi, cx
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a9190
push edx
push edi
push dword [esp + 0x58]
mov edx, 0x65
mov ecx, esi
call fcn.004784f0
add esp, 0xc
jmp 0x4a91c2
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
je 0x4a920a
cmp edx, eax
jne 0x4a920a
cmp byte [ebp + 0x1c], 0
jne 0x4a920a
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x4a9928
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
jmp 0x4a9928
movzx ecx, byte [eax + 0x36]
test ecx, ecx
je 0x4a91da
cmp byte [ebp + 0x20], 0xa
je 0x4a921e
movzx ecx, byte [ebp + 0x20]
jmp 0x4a9229
cmp ecx, 0xa
mov edi, 2
cmove ecx, edi
cmp dword [esp + 0x34], 0
mov dword [esp + 0x28], ecx
jne 0x4a92d9
cmp dword [eax + 0x14], 0
jne 0x4a92d9
cmp edx, eax
jne 0x4a92d9
cmp ecx, 5
jne 0x4a92d9
mov eax, dword [esp + 0x5c]
test dword [eax + 0x1c], 0x2000
je 0x4a92a6
mov ecx, dword [esp + 0x18]
xor edi, edi
xor edx, edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x4a927e
mov edx, dword [esp + 0x14]
call fcn.004b9c90
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4a9297
cmp byte [ecx + 8], 0x6d
jne 0x4a9290
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4a9284
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x4a92d9
mov eax, dword [esp + 0x5c]
test dword [eax + 0x1c], 0x4000
mov edi, dword [esp + 0x14]
je 0x4a91de
cmp dword [edi + 0x10], 0
jne 0x4a92d9
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 0x38
push 0
call fcn.0045d9c0
add esp, 4
cmp dword [eax + 8], 0
je 0x4a91de
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc dword [edi + 0x3c]
movzx eax, word [eax + 0x32]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], edx
jg 0x4a9319
push dword [esp + 0x50]
mov edx, 0x1c
mov ecx, esi
push dword [esp + 0x48]
push dword [esp + 0x2c]
call fcn.004784f0
add esp, 0xc
mov edx, eax
jmp 0x4a9353
mov edi, dword [esp + 0x24]
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x44]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x49], 0
jne 0x4a936e
mov eax, dword [esi + 0x58]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x30]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jne 0x4a9384
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], edx
jmp 0x4a93ea
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x4a93b5
mov al, byte [edi + 0x13]
test al, al
jne 0x4a93a0
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x48], edx
jmp 0x4a93e6
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x15c]
mov dword [esp + 0x48], edx
jmp 0x4a93e6
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x48], edx
cmp eax, ecx
jg 0x4a93d1
add eax, edx
sub ecx, dword [esp + 0x58]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a93e2
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, dword [esp + 0x58]
mov dword [esp + 0x48], edx
mov dword [edi + 0x2c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0x18], 0
jne 0x4a93fb
cmp dword [esp + 0x28], 5
jne 0x4a9775
mov edx, dword [esp + 0x14]
test byte [edx + 0x24], 0x20
mov edx, dword [esp + 0x48]
jne 0x4a94ea
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a9437
push 0
push edx
push dword [esp + 0x2c]
mov edx, 0x85
mov ecx, esi
call fcn.004784f0
mov edx, dword [esp + 0x54]
add esp, 0xc
jmp 0x4a9469
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4a9775
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a9499
push edi
push dword [esp + 0x48]
mov ecx, esi
push edx
mov edx, 0x35
call fcn.004784f0
add esp, 0xc
jmp 0x4a94c7
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x4a9775
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4a9775
cmp eax, ecx
je 0x4a95cd
xor esi, esi
mov dword [esp + 0x2c], 0
cmp si, word [ecx + 0x32]
mov esi, dword [esp + 0x60]
jae 0x4a95cd
mov dword [esp + 0x38], edx
jmp 0x4a9514
mov eax, dword [esp + 0x20]
movzx edx, word [eax + 0x34]
xor ecx, ecx
test edx, edx
je 0x4a9541
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
cmp di, word [eax]
je 0x4a9570
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4a9534
or eax, 0xffffffff
mov ecx, dword [esi + 0x88]
movsx edx, ax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4a9575
mov edi, dword [esp + 0x38]
mov ecx, esi
push edi
push edx
push dword [esp + 0x2c]
mov edx, 0x63
call fcn.004784f0
add esp, 0xc
jmp 0x4a95a7
movzx eax, cx
jmp 0x4a9544
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x3c]
inc edi
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x4a9510
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x18], 0
je 0x4a9775
movzx ecx, word [ecx + 0x32]
mov eax, dword [esi + 0x88]
mov edx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], 0x34
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x50]
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x4a9775
jmp 0x4a9624
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi]
mov eax, dword [eax + 0x20]
mov edx, dword [eax + edx*4]
mov al, byte [ecx + 0x46]
mov byte [esp + 0x4f], al
mov al, byte [ecx + 0x9d]
mov byte [esp + 0x57], al
movzx eax, al
push eax
mov dword [esp + 0x34], edx
push edx
mov dl, byte [esp + 0x57]
call fcn.0049edc0
add esp, 8
mov edi, eax
cmp byte [esp + 0x57], 0
jne 0x4a9680
test edi, edi
je 0x4a9669
cmp dword [edi + 0xc], 0
jne 0x4a9680
push dword [esp + 0x30]
mov dl, byte [esp + 0x53]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0049eb60
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esp + 0x3c]
movzx ecx, word [eax + 0x32]
mov eax, dword [esp + 0x38]
dec ecx
cmp dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
cmove eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
cmovne eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], eax
add ecx, edx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x6c], ecx
cmp dword [eax + 0x30], edx
jg 0x4a96f5
push dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004784f0
add esp, 0xc
mov edx, eax
jmp 0x4a9735
lea eax, [edx + 1]
mov dword [esi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x38]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
push 0xfffffffffffffffe
push edi
mov ecx, esi
call fcn.00479270
mov eax, dword [esi + 0x88]
add esp, 8
test eax, eax
jle 0x4a975c
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x58]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
movzx eax, word [eax + 0x32]
cmp edx, eax
jl 0x4a9620
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a9817
cmp eax, 3
jbe 0x4a97fe
cmp eax, 4
jne 0x4a9817
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x88]
cmp dword [eax + 0x30], ecx
jg 0x4a97c0
push 0
push dword [ebp + 0x24]
mov edx, 0xd
mov ecx, esi
push 0
call fcn.004784f0
mov edi, dword [esp + 0x24]
add esp, 0xc
jmp 0x4a98be
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4a98be
push dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, eax
mov ecx, edi
call fcn.0049e150
add esp, 4
jmp 0x4a98be
mov edi, dword [esp + 0x18]
xor edx, edx
mov ecx, edi
mov eax, dword [edi + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x5c]
mov byte [ecx + 0x14], 1
test dword [eax + 0x1c], 0x2000
je 0x4a9882
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x30], edx
mov eax, dword [ecx]
test dword [eax + 0x1c], 0x40000
je 0x4a985c
mov edx, dword [esp + 0x14]
call fcn.004b9c90
mov edx, eax
mov dword [esp + 0x30], eax
mov ecx, edx
test edx, edx
je 0x4a9875
cmp byte [ecx + 8], 0x6d
jne 0x4a986e
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4a9862
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x18]
cmovne edx, dword [esp + 0x30]
push dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov ecx, edi
cmp dword [esp + 0x24], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x68]
push dword [esp + 0x5c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x38]
call fcn.004a01c0
add esp, 0x24
mov dword [esp + 0x68], 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x4a98dd
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x88]
mov dword [ecx], eax
mov ecx, edi
call fcn.00491d50
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x50]
je 0x4a9920
mov ecx, dword [esp + 0x58]
mov edx, eax
cmp ecx, 1
jne 0x4a9902
mov ecx, edi
call fcn.004949f0
jmp 0x4a9920
push ecx
mov ecx, edi
call fcn.00491cb0
mov eax, dword [esp + 0x5c]
add esp, 4
cmp eax, dword [edi + 0x1c]
jle 0x4a9920
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x20], eax
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x4a8e85
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4a99d6
mov ecx, dword [esi + 0x88]
lea edi, [eax + 1]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4a9977
push 0
push edi
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004784f0
add esp, 0xc
jmp 0x4a99a9
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x88]
cmp byte [eax + 0x49], 0
je 0x4a99be
mov eax, 0x59f36c
jmp 0x4a99d3
mov ecx, dword [esp + 0x70]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret