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

Disassembly:
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
push ebp
mov ebp, dword [eax + 8]
push esi
push edi
xor edi, edi
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x44], edi
setne byte [esp + 0xe]
mov dword [esp + 0x34], edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x30], ecx
cmp ebp, edi
jne 0x519c0c
cmp dword [eax + 0x74], edi
jne 0x519c01
test byte [ecx + 0x44], 8
jne 0x519c01
mov byte [eax + 0x17], 1
push eax
call fcn.004cbd70
add esp, 4
mov ebp, eax
mov esi, dword [esp + 0x88]
test byte [esi + 0x24], 0x20
movsx ecx, word [esi + 0x2a]
mov dword [esp + 0x58], ecx
jne 0x519c2f
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 1
jmp 0x519c54
mov eax, dword [esi + 8]
cmp eax, edi
je 0x519c48
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x519c48
mov eax, dword [eax + 0x14]
cmp eax, edi
jne 0x519c36
mov dword [esp + 0x14], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb0]
push ebx
xor ebx, ebx
cmp ecx, edi
jle 0x519e28
mov dword [esp + 0x30], ebx
jmp 0x519c77
mov eax, dword [esp + 0xb4]
movsx ecx, word [esi + 0x28]
mov edx, dword [esp + 0x88]
cmp ebx, ecx
je 0x519e11
test eax, eax
je 0x519c98
cmp dword [eax + ebx*4], 0
jl 0x519e11
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x30]
movzx esi, byte [eax + ecx + 0xc]
add eax, ecx
test esi, esi
je 0x519e11
mov cl, byte [esp + 0xa8]
cmp cl, 0xb
je 0x519cbf
movzx esi, cl
jmp 0x519cc4
cmp esi, 0xb
je 0x519ccf
cmp esi, 5
jne 0x519cd4
cmp dword [eax + 4], 0
jne 0x519cd4
mov esi, 2
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x519ce0
jmp dword [eax*4 + 0x51b27c]
mov eax, dword [edx + 0x74]
test eax, eax
jne 0x519cf0
mov eax, edx
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + edx]
mov eax, dword [eax]
mov edi, dword [esp + 0x34]
push edx
push eax
push str._s._s
call fcn.004d31d0
mov ecx, dword [esp + 0xa8]
lea edx, [ebx + ecx + 1]
push edx
push esi
push 0x513
push 0x44
push ebp
mov edi, eax
call fcn.004c5720
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
je 0x519d4d
push 0xfffffffffffffff9
mov eax, edi
call fcn.004bff60
add esp, 4
jmp 0x519d64
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4 - 0x14]
mov byte [eax + 1], 0xf9
mov dword [eax + 0x10], edi
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x519e11
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
mov ecx, 1
mov word [eax + edx*4 - 0x12], cx
jmp 0x519e11
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x9c]
push 0
push edx
lea ecx, [ebx + eax + 1]
push ecx
push 0x32
push ebp
call fcn.004c5720
add esp, 0x14
jmp 0x519e11
mov edx, dword [esp + 0x9c]
push 0
push 0
lea esi, [ebx + edx + 1]
push esi
push 0x33
push ebp
call fcn.004c5720
mov edx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov eax, dword [edx + ecx + 4]
mov ecx, dword [esp + 0x9c]
push esi
push eax
push ecx
call fcn.005178a0
mov eax, dword [ebp + 0x88]
add esp, 0x20
test edi, edi
jge 0x519df5
lea edi, [eax - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x519e05
mov ecx, 0x6413f8
jmp 0x519e0e
mov edx, dword [ebp + 0x58]
lea ecx, [edi + edi*4]
lea ecx, [edx + ecx*4]
mov dword [ecx + 8], eax
add dword [esp + 0x30], 0x10
mov esi, dword [esp + 0x8c]
inc ebx
cmp ebx, dword [esp + 0x5c]
jl 0x519c70
mov eax, dword [esi + 0x18]
mov dword [esp + 0x50], eax
test eax, eax
je 0x51a062
mov ecx, dword [esp + 0x34]
test dword [ecx + 0x1c], 0x200
jne 0x51a062
mov ecx, dword [esp + 0x88]
or edx, 0xffffffff
sub edx, dword [esp + 0x9c]
mov dword [ecx + 0x38], edx
mov cl, byte [esp + 0xa8]
cmp cl, 0xb
je 0x519e71
movzx edx, cl
mov dword [esp + 0x20], edx
jmp 0x519e79
mov dword [esp + 0x20], 2
cmp dword [eax], 0
mov dword [esp + 0x28], 0
jle 0x51a04d
add eax, 8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xb4]
mov ecx, dword [eax - 4]
mov dword [esp + 0x5c], ecx
test edx, edx
je 0x519f0a
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
xor al, al
mov byte [esp + 0x7c], al
mov dword [esp + 0x6c], 0x4b8230
mov dword [esp + 0x80], edx
test ecx, ecx
je 0x519ef6
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.004c1420
mov al, byte [esp + 0x84]
add esp, 8
cmp byte [esp + 0xa4], 0
jne 0x519f02
and al, 0xfd
test al, al
je 0x51a033
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x3c]
lea ecx, [ebx - 1]
lea edx, [ebx + 1]
mov dword [esp + 0x40], eax
mov dword [eax + 0x3c], edx
test ebx, ecx
jne 0x519f41
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
lea edx, [ebx*8 + 4]
push 0
push edx
call fcn.004c39b0
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x40], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x40]
xor edi, edi
cmp eax, edi
je 0x519f51
mov dword [eax + ebx*4], 0xffffffff
mov edx, dword [esp + 0x5c]
or eax, 0xffffffff
sub eax, ebx
push 0x10
push eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x90]
push edx
push eax
call fcn.00513f40
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp ecx, 4
jne 0x519fd4
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x519fa1
mov edx, dword [esp + 0xac]
push edi
push edx
push edi
push 0xb
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51a014
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xac]
xor ecx, ecx
mov byte [eax], 0xb
mov word [eax + 2], cx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], cl
jmp 0x51a014
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, edi
jne 0x519fe7
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
cmp ecx, 5
jne 0x519ff4
mov dword [esp + 0x20], 2
mov edi, dword [esp + 0x88]
push 3
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0x113
call fcn.004d0640
add esp, 0x14
xor edi, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x51a033
mov ecx, dword [esp + 0x54]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
add dword [esp + 0x30], 0x18
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x28], eax
jl 0x519e91
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [eax + 0x38], 0
mov edi, dword [esp + 0xb8]
test edi, edi
je 0x51a0a5
cmp dword [edi], 0
jne 0x51a085
xor edi, edi
mov byte [esp + 0xa8], 4
mov dword [esp + 0xb8], edi
jmp 0x51a0a5
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x51a0a5
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5720
add esp, 0x14
mov dword [esp + 0x44], eax
cmp byte [esp + 0xa4], 0
je 0x51a3d3
cmp dword [esp + 0x18], 0
jne 0x51a3d3
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x3c]
lea edx, [ebx - 1]
lea ecx, [ebx + 1]
mov dword [esp + 0x40], eax
mov dword [eax + 0x3c], ecx
test ebx, edx
jne 0x51a107
lea eax, [ebx*8 + 4]
push 0
push eax
mov eax, dword [esp + 0x48]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
call fcn.004c39b0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0xc0]
mov dword [ecx + 0x40], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51a115
mov dword [eax + ebx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ebx
movzx ebx, byte [esi + 0x30]
mov dword [esp + 0x40], eax
mov al, byte [esp + 0xa8]
cmp al, 0xb
je 0x51a132
movzx ebx, al
jmp 0x51a13c
cmp ebx, 0xb
jne 0x51a13c
mov ebx, 2
test edi, edi
je 0x51a154
cmp dword [edi + 0x10], 0
jne 0x51a154
xor ebx, ebx
cmp dword [edi + 8], ebx
setne bl
lea ebx, [ebx + ebx + 4]
jmp 0x51a179
cmp ebx, 5
jne 0x51a179
cmp al, bl
je 0x51a179
cmp dword [esi + 8], 0
je 0x51a179
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5720
add esp, 0x14
inc eax
mov dword [esp + 0x58], eax
cmp byte [esp + 0x12], 0
je 0x51a1ba
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x9c]
push edx
push eax
push ecx
push 0x35
push ebp
call fcn.004c5720
mov eax, dword [ebp + 0x88]
add esp, 0x14
test eax, eax
jle 0x51a1ba
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
mov ecx, 0x90
mov word [eax + edx*4 - 0x12], cx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x94]
push edx
push eax
push ecx
push 0x1f
push ebp
call fcn.004c5720
lea eax, [ebx - 1]
add esp, 0x14
cmp eax, 5
ja case.default.0x51a1e6
jmp dword [eax*4 + 0x51b28c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x88]
xor ebx, ebx
test dword [edx + 0x1c], 0x2000
je 0x51a219
push ebx
push ebx
push 0x75
mov edx, esi
mov eax, edi
call fcn.004b8c70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x51a26a
push 0
push esi
xor ecx, ecx
mov eax, edi
call fcn.004c2520
add esp, 8
test eax, eax
jne 0x51a26a
cmp dword [esi + 8], eax
je 0x51a2a4
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x51a23a
mov eax, edi
mov ecx, dword [esp + 0x94]
push 0xffffffffffffffff
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0x9c]
push 0
push eax
push ecx
push edi
mov ecx, esi
call fcn.00502960
add esp, 0x14
mov dword [esp + 0x48], 1
jmp 0x51a36b
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x51a273
mov eax, edi
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
push 0xffffffffffffffff
push 1
push 5
push 0
push 1
push edx
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0xb0]
push eax
push ecx
push ebx
push esi
push edi
call fcn.0051cc00
add esp, 0x2c
mov dword [esp + 0x48], 1
jmp 0x51a36b
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x88]
push edx
push 0
push edi
push eax
mov eax, esi
call fcn.00519980
add esp, 0x10
mov ecx, dword [esp + 0xac]
push 0
push ecx
push 0
push 0xb
push ebp
call fcn.004c5720
jmp 0x51a368
mov ebx, 2
movzx eax, word [esi + 0x28]
test ax, ax
jl 0x51a329
movsx edx, ax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
shl edx, 4
mov edx, dword [edx + ecx]
mov ecx, dword [esp + 0x88]
mov edi, dword [ecx]
push edx
push eax
push str._s._s
call fcn.004d31d0
add esp, 0xc
mov ecx, 0x613
jmp 0x51a34e
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x88]
mov edi, dword [ecx]
push eax
push str._s.rowid
call fcn.004d31d0
add esp, 8
mov ecx, 0xa13
mov edi, dword [esp + 0x88]
push 2
push 0xfffffffffffffff9
push eax
push ebx
push ecx
call fcn.004d0640
mov esi, dword [esp + 0xa0]
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51a38a
mov edx, dword [esp + 0x40]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x88]
sub eax, ecx
mov dword [eax], edx
mov edi, dword [esp + 0x58]
test edi, edi
je 0x51a3d3
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5720
mov ecx, dword [ebp + 0x88]
mov dword [esp + 0x78], eax
lea eax, [edi - 1]
add esp, 0x14
test eax, eax
jge 0x51a3b7
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51a3c7
mov eax, 0x6413f8
jmp 0x51a3d0
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x51b1b5
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
cmp dword [ecx + eax*4], 0
mov edi, dword [esp + 0x44]
je 0x51b19e
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x14]
jne 0x51a4a7
mov ecx, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], ecx
lea eax, [edi + 1]
mov dword [esp + 0x1c], eax
jg 0x51a43f
xor ebx, ebx
push ebx
push ebx
push ebx
push 0xb
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51a46d
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
mov eax, dword [ebp + 0x58]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
xor ebx, ebx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, ecx
cmp edi, ebx
mov ecx, dword [ebp + 0x88]
mov dword [esp + 0x60], eax
mov eax, edi
jge 0x51a480
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51a496
mov eax, 0x6413f8
mov dword [eax + 8], ecx
jmp 0x51a58b
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
jmp 0x51a58b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
test eax, edx
jne 0x51a572
mov ebx, eax
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
xor ecx, ecx
lea ebx, [ebx*8 + 4]
test edi, edi
jne 0x51a4ec
push ecx
push ebx
mov eax, esi
call fcn.004bbee0
add esp, 8
jmp 0x51a51d
cmp edi, dword [esi + 0x128]
jb 0x51a512
cmp edi, dword [esi + 0x12c]
jae 0x51a512
movzx eax, word [esi + 0x10c]
cdq
cmp ecx, edx
ja 0x51a512
jb 0x51a50e
cmp ebx, eax
ja 0x51a512
mov ebx, edi
jmp 0x51a51f
push ecx
push ebx
push edi
call fcn.004bbf70
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x51a567
test edi, edi
je 0x51a567
test esi, esi
je 0x51a55e
cmp dword [esi + 0x1d8], ebx
je 0x51a53e
mov eax, edi
mov ecx, esi
call fcn.004acbd0
jmp 0x51a567
cmp edi, dword [esi + 0x128]
jb 0x51a55e
cmp edi, dword [esi + 0x12c]
jae 0x51a55e
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x51a567
push edi
call fcn.004acb60
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x40], ebx
mov ecx, dword [ecx + 0x40]
xor ebx, ebx
cmp ecx, ebx
je 0x51a582
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0x1c], ecx
cmp byte [esp + 0x13], 0
jne 0x51a5be
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x51a5a0
cmp eax, dword [esp + 0x14]
jne 0x51a5be
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x8c]
inc edx
push edx
push ebp
call fcn.004c86b0
add esp, 8
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp dword [ecx + 0x24], ebx
je 0x51a691
mov edx, dword [esp + 0x90]
mov ecx, dword [edx + eax*4]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x51a606
push ebx
push ecx
push ebx
push 0x49
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51a630
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x49
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], dl
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx]
or eax, 0xffffffff
sub eax, dword [esp + 0x9c]
mov dword [ebx + 0x38], eax
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x51a663
push 0
push 0
push eax
push edi
call fcn.004d65f0
add esp, 0x10
mov esi, eax
jmp 0x51a665
xor esi, esi
cmp byte [edi + 0x49], 0
jne 0x51a67c
mov edx, dword [esp + 0x1c]
push 0x10
push edx
push esi
push ebx
call fcn.005142b0
add esp, 0x10
test esi, esi
je 0x51a68a
push esi
push edi
call fcn.004c6c60
add esp, 8
mov dword [ebx + 0x38], 0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x28], ebx
cmp dx, word [eax + 0x34]
jae 0x51a8b7
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
movsx eax, word [edx + ebx*2]
cmp eax, 0xfffffffe
jne 0x51a822
mov edx, dword [esp + 0x88]
or eax, 0xffffffff
sub eax, dword [esp + 0x9c]
mov dword [edx + 0x38], eax
mov ecx, dword [ecx + 0x28]
mov eax, dword [esp + 0x20]
mov eax, dword [ecx + eax + 4]
mov ecx, dword [edx]
mov dword [esp + 0x40], ecx
test eax, eax
je 0x51a713
push 0
push 0
push eax
mov edx, ecx
push edx
call fcn.004d65f0
add esp, 0x10
mov ebx, eax
jmp 0x51a715
xor ebx, ebx
mov eax, dword [esp + 0x40]
cmp byte [eax + 0x49], 0
jne 0x51a7f9
test ebx, ebx
je 0x51a78b
cmp byte [ebx], 0xa4
jne 0x51a78b
mov edx, dword [esp + 0x88]
mov esi, dword [edx + 8]
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [ebx + 0x1c]
jg 0x51a75a
push 0
push edi
push ecx
push 0x4e
call fcn.004c56e0
add esp, 0x10
jmp 0x51a7f9
lea edx, [eax + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x4e
mov word [eax + 2], dx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], dl
jmp 0x51a7f9
mov eax, dword [esp + 0x88]
push edi
push ebx
push eax
call fcn.00516a40
add esp, 0xc
cmp eax, edi
je 0x51a7f9
mov ecx, dword [esp + 0x88]
mov esi, dword [ecx + 8]
test esi, esi
je 0x51a7f9
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], ecx
jg 0x51a7cd
push 0
push edi
push eax
push 0x4f
call fcn.004c56e0
add esp, 0x10
jmp 0x51a7f9
lea edx, [ecx + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
xor edx, edx
mov dword [ecx + 4], eax
xor eax, eax
mov byte [ecx], 0x4f
mov word [ecx + 2], dx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], dl
test ebx, ebx
je 0x51a80b
mov eax, dword [esp + 0x40]
push ebx
push eax
call fcn.004c6c60
add esp, 8
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x28]
mov dword [ecx + 0x38], 0
jmp 0x51a89c
cmp eax, 0xffffffff
je 0x51a843
mov edx, dword [esp + 0x8c]
movsx ecx, word [edx + 0x28]
cmp eax, ecx
je 0x51a843
mov edx, dword [esp + 0x9c]
lea edx, [eax + edx + 1]
jmp 0x51a84a
mov edx, dword [esp + 0x9c]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 0x88]
setl cl
add ecx, 0x4f
cmp dword [esi + 0x30], eax
jg 0x51a873
push 0
push edi
push edx
push ecx
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51a89c
lea esi, [eax + 1]
mov dword [ebp + 0x88], esi
mov esi, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 0x34]
add dword [esp + 0x20], 0x18
inc ebx
inc edi
cmp ebx, eax
mov dword [esp + 0x28], ebx
jl 0x51a6c2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
movzx edx, word [eax + 0x34]
mov eax, dword [ebp + 0x88]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x30], eax
jg 0x51a8f0
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push 0x66
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51a923
lea esi, [eax + 1]
mov dword [ebp + 0x88], esi
mov esi, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x2c]
mov byte [eax], 0x66
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
cmp byte [esp + 0x12], 0
mov edx, dword [esp + 0x14]
je 0x51a966
cmp dword [esp + 0x18], edx
jne 0x51a966
cmp byte [esp + 0xa4], 0
jne 0x51a966
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51b19e
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
jmp 0x51b19e
movzx ecx, byte [edx + 0x36]
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x51a99a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51b19e
mov edx, dword [esp + 0x1c]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x88]
sub eax, ecx
mov dword [eax], edx
jmp 0x51b19e
mov al, byte [esp + 0xa8]
cmp al, 0xb
je 0x51a9aa
movzx ecx, al
jmp 0x51a9b4
cmp ecx, 0xb
jne 0x51a9b8
mov ecx, 2
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x38], edx
jne 0x51a9d5
mov eax, dword [esp + 0xb8]
xor ecx, ecx
cmp dword [eax + 8], ecx
setne cl
lea ecx, [ecx + ecx + 4]
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x30], 0
jne 0x51aa53
cmp dword [edx + 0x14], 0
jne 0x51aa53
cmp dword [esp + 0x18], edx
jne 0x51aa53
cmp ecx, 5
jne 0x51aa53
mov ebx, dword [esp + 0x34]
test dword [ebx + 0x1c], 0x2000
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
je 0x51aa22
push 0
push 0
push 0x75
mov edx, esi
mov eax, edi
call fcn.004b8c70
add esp, 0xc
test eax, eax
jne 0x51aa5a
test dword [ebx + 0x1c], 0x4000
je 0x51a93e
cmp dword [esi + 0x10], 0
jne 0x51aa5a
mov ecx, dword [esi]
mov eax, dword [esi + 0x48]
push 0
add eax, 0x38
push ecx
call fcn.004ae210
add esp, 8
cmp dword [eax + 8], 0
jne 0x51aa5a
jmp 0x51a93e
mov edi, dword [esp + 0x88]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], ecx
mov edx, dword [esp + 0x14]
movzx ebx, word [edx + 0x32]
jg 0x51aa8d
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push 0x1b
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51aaca
lea edx, [ecx + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x1b
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
jne 0x51aae3
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ebx
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], esi
jne 0x51aaf3
mov ecx, dword [esp + 0x2c]
jmp 0x51ab3e
mov edx, dword [esp + 0x3c]
cmp edx, 1
jne 0x51ab1c
mov al, byte [edi + 0x13]
test al, al
jne 0x51ab0b
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
jmp 0x51ab3e
dec al
movzx ecx, al
mov byte [edi + 0x13], al
mov ecx, dword [edi + ecx*4 + 0x90]
jmp 0x51ab3e
mov eax, dword [edi + 0x1c]
cmp edx, eax
mov ecx, dword [edi + 0x20]
jg 0x51ab33
lea ebx, [ecx + edx]
sub eax, edx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], eax
jmp 0x51ab3e
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [edi + 0x2c], eax
cmp byte [esp + 0x12], 0
mov dword [esp + 0x28], ecx
jne 0x51ab58
cmp dword [esp + 0x20], 5
jne 0x51af01
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
test byte [edx + 0x24], 0x20
jne 0x51ac5a
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x51ab90
mov eax, dword [esp + 0x24]
push 0
push ecx
push eax
push 0x88
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51abc0
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x88
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp byte [esp + 0x12], 0
je 0x51af01
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x51abf9
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push 0x35
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51ac37
mov ecx, dword [ebp + 0x58]
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x28]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xa0]
mov byte [eax], 0x35
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x51af01
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
mov ecx, 0x90
mov word [eax + edx*4 - 0x12], cx
jmp 0x51af01
cmp dword [esp + 0x14], esi
je 0x51ad14
xor edx, edx
xor ebx, ebx
cmp dx, word [esi + 0x32]
jae 0x51ad14
mov edi, ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x34]
xor eax, eax
test edx, edx
jle 0x51aca1
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
movzx esi, word [ecx + ebx*2]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
cmp si, word [ecx]
je 0x51acca
inc eax
add ecx, 2
cmp eax, edx
jl 0x51ac94
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
movsx ecx, ax
mov eax, dword [ebp + 0x88]
cmp dword [edx + 0x30], eax
jg 0x51accf
mov eax, dword [esp + 0x24]
push edi
push ecx
push eax
push 0x5a
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51ad02
movzx eax, ax
jmp 0x51aca4
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x24]
mov byte [eax], 0x5a
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0x32]
inc ebx
inc edi
cmp ebx, ecx
jl 0x51ac74
cmp byte [esp + 0x12], 0
je 0x51af01
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x32]
mov ecx, dword [ebp + 0x88]
add ecx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x38]
and dl, 3
mov dword [esp + 0x4c], 0x34
cmp dl, 2
jne 0x51ad54
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
jmp 0x51ad5c
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
xor edi, edi
test eax, eax
jle 0x51af01
jmp 0x51ad70
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
mov esi, dword [ecx + edi*4]
mov cl, byte [eax + 0x46]
mov bl, byte [eax + 0x9d]
mov byte [esp + 0x5c], cl
test esi, esi
je 0x51ada4
movzx edx, bl
push edx
push esi
push eax
call fcn.004cce30
add esp, 0xc
jmp 0x51ada7
mov eax, dword [eax + 8]
test eax, eax
je 0x51adb7
movzx ecx, byte [esp + 0x5c]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
mov dword [esp + 0x40], eax
test bl, bl
jne 0x51ade5
test eax, eax
je 0x51adc9
cmp dword [eax + 0xc], 0
jne 0x51ade5
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x8c]
push edx
push eax
mov eax, esi
call fcn.004d9250
add esp, 0xc
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
movzx ecx, word [ecx + 0x32]
movsx eax, word [edx + edi*2]
dec ecx
cmp edi, ecx
jne 0x51ae09
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 0x35
mov ecx, dword [esp + 0xa0]
mov edx, dword [ebp + 0xc]
lea esi, [ecx + eax + 1]
mov ecx, dword [ebp + 0x88]
cmp dword [edx + 0x30], ecx
jg 0x51ae40
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add eax, edi
push eax
push ecx
push esi
push edx
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51ae7e
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
mov eax, dword [ebp + 0x58]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov dl, byte [esp + 0x4c]
mov byte [eax], dl
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x54]
add edx, edi
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebp]
cmp byte [ecx + 0x49], 0
je 0x51ae97
mov eax, dword [esp + 0x40]
push 0xfffffffffffffffe
call fcn.004bff60
add esp, 4
jmp 0x51aed6
test eax, eax
jge 0x51aea2
mov eax, dword [ebp + 0x88]
dec eax
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x51aec7
mov edx, dword [esp + 0x40]
push edx
push ebp
mov eax, 0xfffffffe
call fcn.004c00f0
add esp, 8
jmp 0x51aed6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51aed6
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfe
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x51aef0
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
mov edx, 0x90
mov word [ecx + eax*4 - 0x12], dx
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0x32]
inc edi
cmp edi, ecx
jl 0x51ad70
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 5
ja case.0x51af11.5
jmp dword [ecx*4 + 0x51b2a4]
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x90]
push eax
call fcn.004d8df0
add esp, 0xc
jmp 0x51b097
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
mov eax, dword [esp + 0x98]
push ecx
call fcn.00519980
add esp, 0x10
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x51af87
mov eax, dword [esp + 0xac]
xor edi, edi
push edi
push eax
push edi
push 0xb
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51b099
lea ecx, [eax + 1]
mov dword [ebp + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xac]
xor ecx, ecx
xor edi, edi
mov byte [eax], 0xb
mov word [eax + 2], cx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x51b099
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
xor esi, esi
test dword [eax + 0x1c], 0x2000
je 0x51b01b
mov ecx, dword [ebx]
xor eax, eax
test dword [ecx + 0x1c], 0x40000
je 0x51aff5
push edi
mov eax, ebx
call fcn.004b8b80
add esp, 4
mov ecx, eax
test eax, eax
je 0x51b013
jmp 0x51b000
cmp byte [ecx + 8], 0x75
jne 0x51b00c
movzx edx, byte [ecx + 9]
or esi, edx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x51b000
neg esi
sbb esi, esi
and esi, eax
jne 0x51b045
mov eax, dword [ebx]
test dword [eax + 0x1c], 0x4000
je 0x51b052
mov ecx, dword [edi]
mov eax, dword [edi + 0x48]
push 0
add eax, 0x38
push ecx
call fcn.004ae210
add esp, 8
cmp dword [eax + 8], 0
jne 0x51b045
cmp dword [edi + 0x10], 0
je 0x51b052
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x51b04e
mov eax, ebx
mov byte [eax + 0x14], 1
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
push ecx
sete al
movzx ecx, al
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xa0]
push 5
push 0
push edx
mov edx, dword [esp + 0xa8]
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.0051cc00
add esp, 0x2c
mov dword [esp + 0x48], 1
xor edi, edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jne 0x51b127
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
inc ecx
cmp dword [edx + 0x30], eax
jg 0x51b0cb
push edi
push ecx
push edi
push 0xb
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51b0f5
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
mov eax, dword [esp + 0x60]
cmp eax, edi
mov ecx, dword [ebp + 0x88]
jge 0x51b106
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51b119
mov eax, 0x6413f8
mov dword [eax + 8], ecx
jmp 0x51b146
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
jmp 0x51b146
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x51b146
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x2c]
je 0x51b19e
mov eax, dword [esp + 0x3c]
cmp eax, 1
jne 0x51b181
test ecx, ecx
je 0x51b19e
mov edx, dword [esp + 0x88]
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x51b19e
movzx edx, al
mov eax, dword [esp + 0x88]
mov dword [eax + edx*4 + 0x90], ecx
inc byte [eax + 0x13]
jmp 0x51b19e
mov edx, dword [esp + 0x88]
cmp eax, dword [edx + 0x1c]
jle 0x51b19e
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
inc dword [esp + 0x30]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x51a3f0
mov eax, dword [esp + 0x58]
xor edi, edi
pop ebx
cmp eax, edi
je 0x51b266
mov edx, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov eax, dword [ebp + 0x88]
cmp dword [edx + 0x30], eax
jg 0x51b1e6
push edi
push ecx
push edi
push 0xb
mov esi, ebp
call fcn.004c56e0
add esp, 0x10
jmp 0x51b210
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
mov eax, dword [esp + 0x60]
cmp eax, edi
mov ecx, dword [ebp + 0x88]
jge 0x51b221
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51b246
mov eax, 0x6413f8
mov dword [eax + 8], ecx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
add esp, 0x74
ret
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
add esp, 0x74
ret
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x44]
pop edi
pop esi
mov dword [edx], eax
pop ebp
add esp, 0x74
ret