Function at 0x5199e0
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 0x519a3c
cmp dword [eax + 0x74], edi
jne 0x519a31
test byte [ecx + 0x44], 8
jne 0x519a31
mov byte [eax + 0x17], 1
push eax
call fcn.004cbbb0
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 0x519a5f
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 1
jmp 0x519a84
mov eax, dword [esi + 8]
cmp eax, edi
je 0x519a78
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x519a78
mov eax, dword [eax + 0x14]
cmp eax, edi
jne 0x519a66
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 0x519c58
mov dword [esp + 0x30], ebx
jmp 0x519aa7
mov eax, dword [esp + 0xb4]
movsx ecx, word [esi + 0x28]
mov edx, dword [esp + 0x88]
cmp ebx, ecx
je 0x519c41
test eax, eax
je 0x519ac8
cmp dword [eax + ebx*4], 0
jl 0x519c41
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x30]
movzx esi, byte [eax + ecx + 0xc]
add eax, ecx
test esi, esi
je 0x519c41
mov cl, byte [esp + 0xa8]
cmp cl, 0xb
je 0x519aef
movzx esi, cl
jmp 0x519af4
cmp esi, 0xb
je 0x519aff
cmp esi, 5
jne 0x519b04
cmp dword [eax + 4], 0
jne 0x519b04
mov esi, 2
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x519b10
jmp dword [eax*4 + 0x51b0ac]
mov eax, dword [edx + 0x74]
test eax, eax
jne 0x519b20
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.004d3010
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.004c5570
mov ecx, dword [ebp]
add esp, 0x20
cmp byte [ecx + 0x49], 0
je 0x519b7d
push 0xfffffffffffffff9
mov eax, edi
call fcn.004bfdb0
add esp, 4
jmp 0x519b94
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 0x519c41
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
mov ecx, 1
mov word [eax + edx*4 - 0x12], cx
jmp 0x519c41
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.004c5570
add esp, 0x14
jmp 0x519c41
mov edx, dword [esp + 0x9c]
push 0
push 0
lea esi, [ebx + edx + 1]
push esi
push 0x33
push ebp
call fcn.004c5570
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.005176d0
mov eax, dword [ebp + 0x88]
add esp, 0x20
test edi, edi
jge 0x519c25
lea edi, [eax - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x519c35
mov ecx, 0x6413f8
jmp 0x519c3e
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 0x519aa0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x50], eax
test eax, eax
je 0x519e92
mov ecx, dword [esp + 0x34]
test dword [ecx + 0x1c], 0x200
jne 0x519e92
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 0x519ca1
movzx edx, cl
mov dword [esp + 0x20], edx
jmp 0x519ca9
mov dword [esp + 0x20], 2
cmp dword [eax], 0
mov dword [esp + 0x28], 0
jle 0x519e7d
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 0x519d3a
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], 0x4b8070
mov dword [esp + 0x80], edx
test ecx, ecx
je 0x519d26
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.004c1270
mov al, byte [esp + 0x84]
add esp, 8
cmp byte [esp + 0xa4], 0
jne 0x519d32
and al, 0xfd
test al, al
je 0x519e63
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 0x519d71
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
lea edx, [ebx*8 + 4]
push 0
push edx
call fcn.004c3800
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 0x519d81
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.00513d70
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp ecx, 4
jne 0x519e04
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x519dd1
mov edx, dword [esp + 0xac]
push edi
push edx
push edi
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x519e44
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 0x519e44
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, edi
jne 0x519e17
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
cmp ecx, 5
jne 0x519e24
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.004d0480
add esp, 0x14
xor edi, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x519e63
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 0x519cc1
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
mov dword [eax + 0x38], 0
mov edi, dword [esp + 0xb8]
test edi, edi
je 0x519ed5
cmp dword [edi], 0
jne 0x519eb5
xor edi, edi
mov byte [esp + 0xa8], 4
mov dword [esp + 0xb8], edi
jmp 0x519ed5
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x519ed5
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5570
add esp, 0x14
mov dword [esp + 0x44], eax
cmp byte [esp + 0xa4], 0
je 0x51a203
cmp dword [esp + 0x18], 0
jne 0x51a203
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 0x519f37
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.004c3800
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 0x519f45
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 0x519f62
movzx ebx, al
jmp 0x519f6c
cmp ebx, 0xb
jne 0x519f6c
mov ebx, 2
test edi, edi
je 0x519f84
cmp dword [edi + 0x10], 0
jne 0x519f84
xor ebx, ebx
cmp dword [edi + 8], ebx
setne bl
lea ebx, [ebx + ebx + 4]
jmp 0x519fa9
cmp ebx, 5
jne 0x519fa9
cmp al, bl
je 0x519fa9
cmp dword [esi + 8], 0
je 0x519fa9
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5570
add esp, 0x14
inc eax
mov dword [esp + 0x58], eax
cmp byte [esp + 0x12], 0
je 0x519fea
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.004c5570
mov eax, dword [ebp + 0x88]
add esp, 0x14
test eax, eax
jle 0x519fea
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.004c5570
lea eax, [ebx - 1]
add esp, 0x14
cmp eax, 5
ja case.default.0x51a016
jmp dword [eax*4 + 0x51b0bc]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x88]
xor ebx, ebx
test dword [edx + 0x1c], 0x2000
je 0x51a049
push ebx
push ebx
push 0x75
mov edx, esi
mov eax, edi
call fcn.004b8ab0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x51a09a
push 0
push esi
xor ecx, ecx
mov eax, edi
call fcn.004c2370
add esp, 8
test eax, eax
jne 0x51a09a
cmp dword [esi + 8], eax
je 0x51a0d4
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x51a06a
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.00502790
add esp, 0x14
mov dword [esp + 0x48], 1
jmp 0x51a19b
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x51a0a3
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.0051ca30
add esp, 0x2c
mov dword [esp + 0x48], 1
jmp 0x51a19b
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x88]
push edx
push 0
push edi
push eax
mov eax, esi
call fcn.005197b0
add esp, 0x10
mov ecx, dword [esp + 0xac]
push 0
push ecx
push 0
push 0xb
push ebp
call fcn.004c5570
jmp 0x51a198
mov ebx, 2
movzx eax, word [esi + 0x28]
test ax, ax
jl 0x51a159
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.004d3010
add esp, 0xc
mov ecx, 0x613
jmp 0x51a17e
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.004d3010
add esp, 8
mov ecx, 0xa13
mov edi, dword [esp + 0x88]
push 2
push 0xfffffffffffffff9
push eax
push ebx
push ecx
call fcn.004d0480
mov esi, dword [esp + 0xa0]
add esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51a1ba
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 0x51a203
push 0
push 0
push 0
push 0xb
push ebp
call fcn.004c5570
mov ecx, dword [ebp + 0x88]
mov dword [esp + 0x78], eax
lea eax, [edi - 1]
add esp, 0x14
test eax, eax
jge 0x51a1e7
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51a1f7
mov eax, 0x6413f8
jmp 0x51a200
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 0x51afe5
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 0x51afce
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x14]
jne 0x51a2d7
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 0x51a26f
xor ebx, ebx
push ebx
push ebx
push ebx
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51a29d
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 0x51a2b0
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51a2c6
mov eax, 0x6413f8
mov dword [eax + 8], ecx
jmp 0x51a3bb
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
jmp 0x51a3bb
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 0x51a3a2
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 0x51a31c
push ecx
push ebx
mov eax, esi
call fcn.004bbd30
add esp, 8
jmp 0x51a34d
cmp edi, dword [esi + 0x128]
jb 0x51a342
cmp edi, dword [esi + 0x12c]
jae 0x51a342
movzx eax, word [esi + 0x10c]
cdq
cmp ecx, edx
ja 0x51a342
jb 0x51a33e
cmp ebx, eax
ja 0x51a342
mov ebx, edi
jmp 0x51a34f
push ecx
push ebx
push edi
call fcn.004bbdc0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x51a397
test edi, edi
je 0x51a397
test esi, esi
je 0x51a38e
cmp dword [esi + 0x1d8], ebx
je 0x51a36e
mov eax, edi
mov ecx, esi
call fcn.004aca10
jmp 0x51a397
cmp edi, dword [esi + 0x128]
jb 0x51a38e
cmp edi, dword [esi + 0x12c]
jae 0x51a38e
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x51a397
push edi
call fcn.004ac9a0
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 0x51a3b2
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov dword [esp + 0x1c], ecx
cmp byte [esp + 0x13], 0
jne 0x51a3ee
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x51a3d0
cmp eax, dword [esp + 0x14]
jne 0x51a3ee
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x8c]
inc edx
push edx
push ebp
call fcn.004c84f0
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 0x51a4c1
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 0x51a436
push ebx
push ecx
push ebx
push 0x49
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51a460
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 0x51a493
push 0
push 0
push eax
push edi
call fcn.004d6430
add esp, 0x10
mov esi, eax
jmp 0x51a495
xor esi, esi
cmp byte [edi + 0x49], 0
jne 0x51a4ac
mov edx, dword [esp + 0x1c]
push 0x10
push edx
push esi
push ebx
call fcn.005140e0
add esp, 0x10
test esi, esi
je 0x51a4ba
push esi
push edi
call fcn.004c6ab0
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 0x51a6e7
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 0x51a652
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 0x51a543
push 0
push 0
push eax
mov edx, ecx
push edx
call fcn.004d6430
add esp, 0x10
mov ebx, eax
jmp 0x51a545
xor ebx, ebx
mov eax, dword [esp + 0x40]
cmp byte [eax + 0x49], 0
jne 0x51a629
test ebx, ebx
je 0x51a5bb
cmp byte [ebx], 0xa4
jne 0x51a5bb
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 0x51a58a
push 0
push edi
push ecx
push 0x4e
call fcn.004c5530
add esp, 0x10
jmp 0x51a629
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 0x51a629
mov eax, dword [esp + 0x88]
push edi
push ebx
push eax
call fcn.00516870
add esp, 0xc
cmp eax, edi
je 0x51a629
mov ecx, dword [esp + 0x88]
mov esi, dword [ecx + 8]
test esi, esi
je 0x51a629
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], ecx
jg 0x51a5fd
push 0
push edi
push eax
push 0x4f
call fcn.004c5530
add esp, 0x10
jmp 0x51a629
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 0x51a63b
mov eax, dword [esp + 0x40]
push ebx
push eax
call fcn.004c6ab0
add esp, 8
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x28]
mov dword [ecx + 0x38], 0
jmp 0x51a6cc
cmp eax, 0xffffffff
je 0x51a673
mov edx, dword [esp + 0x8c]
movsx ecx, word [edx + 0x28]
cmp eax, ecx
je 0x51a673
mov edx, dword [esp + 0x9c]
lea edx, [eax + edx + 1]
jmp 0x51a67a
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 0x51a6a3
push 0
push edi
push edx
push ecx
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51a6cc
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 0x51a4f2
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 0x51a720
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push 0x66
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51a753
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 0x51a796
cmp dword [esp + 0x18], edx
jne 0x51a796
cmp byte [esp + 0xa4], 0
jne 0x51a796
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51afce
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
jmp 0x51afce
movzx ecx, byte [edx + 0x36]
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x51a7ca
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x51afce
mov edx, dword [esp + 0x1c]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x88]
sub eax, ecx
mov dword [eax], edx
jmp 0x51afce
mov al, byte [esp + 0xa8]
cmp al, 0xb
je 0x51a7da
movzx ecx, al
jmp 0x51a7e4
cmp ecx, 0xb
jne 0x51a7e8
mov ecx, 2
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x38], edx
jne 0x51a805
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 0x51a883
cmp dword [edx + 0x14], 0
jne 0x51a883
cmp dword [esp + 0x18], edx
jne 0x51a883
cmp ecx, 5
jne 0x51a883
mov ebx, dword [esp + 0x34]
test dword [ebx + 0x1c], 0x2000
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
je 0x51a852
push 0
push 0
push 0x75
mov edx, esi
mov eax, edi
call fcn.004b8ab0
add esp, 0xc
test eax, eax
jne 0x51a88a
test dword [ebx + 0x1c], 0x4000
je 0x51a76e
cmp dword [esi + 0x10], 0
jne 0x51a88a
mov ecx, dword [esi]
mov eax, dword [esi + 0x48]
push 0
add eax, 0x38
push ecx
call fcn.004ae050
add esp, 8
cmp dword [eax + 8], 0
jne 0x51a88a
jmp 0x51a76e
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 0x51a8bd
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.004c5530
add esp, 0x10
jmp 0x51a8fa
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 0x51a913
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 0x51a923
mov ecx, dword [esp + 0x2c]
jmp 0x51a96e
mov edx, dword [esp + 0x3c]
cmp edx, 1
jne 0x51a94c
mov al, byte [edi + 0x13]
test al, al
jne 0x51a93b
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
jmp 0x51a96e
dec al
movzx ecx, al
mov byte [edi + 0x13], al
mov ecx, dword [edi + ecx*4 + 0x90]
jmp 0x51a96e
mov eax, dword [edi + 0x1c]
cmp edx, eax
mov ecx, dword [edi + 0x20]
jg 0x51a963
lea ebx, [ecx + edx]
sub eax, edx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], eax
jmp 0x51a96e
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 0x51a988
cmp dword [esp + 0x20], 5
jne 0x51ad31
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
test byte [edx + 0x24], 0x20
jne 0x51aa8a
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x51a9c0
mov eax, dword [esp + 0x24]
push 0
push ecx
push eax
push 0x88
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51a9f0
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 0x51ad31
mov eax, dword [ebp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x51aa29
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.004c5530
add esp, 0x10
jmp 0x51aa67
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 0x51ad31
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
mov ecx, 0x90
mov word [eax + edx*4 - 0x12], cx
jmp 0x51ad31
cmp dword [esp + 0x14], esi
je 0x51ab44
xor edx, edx
xor ebx, ebx
cmp dx, word [esi + 0x32]
jae 0x51ab44
mov edi, ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x34]
xor eax, eax
test edx, edx
jle 0x51aad1
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 0x51aafa
inc eax
add ecx, 2
cmp eax, edx
jl 0x51aac4
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
movsx ecx, ax
mov eax, dword [ebp + 0x88]
cmp dword [edx + 0x30], eax
jg 0x51aaff
mov eax, dword [esp + 0x24]
push edi
push ecx
push eax
push 0x5a
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51ab32
movzx eax, ax
jmp 0x51aad4
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 0x51aaa4
cmp byte [esp + 0x12], 0
je 0x51ad31
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 0x51ab84
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
jmp 0x51ab8c
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
xor edi, edi
test eax, eax
jle 0x51ad31
jmp 0x51aba0
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 0x51abd4
movzx edx, bl
push edx
push esi
push eax
call fcn.004ccc70
add esp, 0xc
jmp 0x51abd7
mov eax, dword [eax + 8]
test eax, eax
je 0x51abe7
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 0x51ac15
test eax, eax
je 0x51abf9
cmp dword [eax + 0xc], 0
jne 0x51ac15
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x8c]
push edx
push eax
mov eax, esi
call fcn.004d9090
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 0x51ac39
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 0x51ac70
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.004c5530
add esp, 0x10
jmp 0x51acae
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 0x51acc7
mov eax, dword [esp + 0x40]
push 0xfffffffffffffffe
call fcn.004bfdb0
add esp, 4
jmp 0x51ad06
test eax, eax
jge 0x51acd2
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 0x51acf7
mov edx, dword [esp + 0x40]
push edx
push ebp
mov eax, 0xfffffffe
call fcn.004bff40
add esp, 8
jmp 0x51ad06
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51ad06
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfe
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x51ad20
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 0x51aba0
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 5
ja case.0x51ad41.5
jmp dword [ecx*4 + 0x51b0d4]
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x90]
push eax
call fcn.004d8c30
add esp, 0xc
jmp 0x51aec7
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.005197b0
add esp, 0x10
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x51adb7
mov eax, dword [esp + 0xac]
xor edi, edi
push edi
push eax
push edi
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51aec9
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 0x51aec9
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
xor esi, esi
test dword [eax + 0x1c], 0x2000
je 0x51ae4b
mov ecx, dword [ebx]
xor eax, eax
test dword [ecx + 0x1c], 0x40000
je 0x51ae25
push edi
mov eax, ebx
call fcn.004b89c0
add esp, 4
mov ecx, eax
test eax, eax
je 0x51ae43
jmp 0x51ae30
cmp byte [ecx + 8], 0x75
jne 0x51ae3c
movzx edx, byte [ecx + 9]
or esi, edx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x51ae30
neg esi
sbb esi, esi
and esi, eax
jne 0x51ae75
mov eax, dword [ebx]
test dword [eax + 0x1c], 0x4000
je 0x51ae82
mov ecx, dword [edi]
mov eax, dword [edi + 0x48]
push 0
add eax, 0x38
push ecx
call fcn.004ae050
add esp, 8
cmp dword [eax + 8], 0
jne 0x51ae75
cmp dword [edi + 0x10], 0
je 0x51ae82
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x51ae7e
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.0051ca30
add esp, 0x2c
mov dword [esp + 0x48], 1
xor edi, edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jne 0x51af57
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
inc ecx
cmp dword [edx + 0x30], eax
jg 0x51aefb
push edi
push ecx
push edi
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51af25
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 0x51af36
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51af49
mov eax, 0x6413f8
mov dword [eax + 8], ecx
jmp 0x51af76
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
jmp 0x51af76
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, edi
je 0x51af76
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 0x51afce
mov eax, dword [esp + 0x3c]
cmp eax, 1
jne 0x51afb1
test ecx, ecx
je 0x51afce
mov edx, dword [esp + 0x88]
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x51afce
movzx edx, al
mov eax, dword [esp + 0x88]
mov dword [eax + edx*4 + 0x90], ecx
inc byte [eax + 0x13]
jmp 0x51afce
mov edx, dword [esp + 0x88]
cmp eax, dword [edx + 0x1c]
jle 0x51afce
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 0x51a220
mov eax, dword [esp + 0x58]
xor edi, edi
pop ebx
cmp eax, edi
je 0x51b096
mov edx, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov eax, dword [ebp + 0x88]
cmp dword [edx + 0x30], eax
jg 0x51b016
push edi
push ecx
push edi
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x51b040
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 0x51b051
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x51b076
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