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

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x110]
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [esi + 0x50]
mov ecx, dword [edi + 0x48]
xor ebx, ebx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], edi
call fcn.0052fc20
add esp, 4
cmp eax, ebx
jne 0x522313
cmp byte [esi + 4], bl
je 0x5217fa
cmp byte [esi + 3], bl
je 0x5217fa
cmp byte [esi + 6], bl
je 0x5217fa
cmp byte [esi + 2], 1
jne 0x5217fa
mov dx, word [esi + 0x1c]
cmp dx, word [esi + 0x14]
jne 0x5217fa
mov eax, dword [esi + 0x50]
cmp dword [eax + 0x4c], 1
je 0x5217fa
movzx ecx, byte [edi + 8]
mov edx, dword [edi + 0x44]
lea eax, [ecx + edx + 8]
push eax
call fcn.00517740
add esp, 4
cmp eax, dword [esi + 0x4c]
jne 0x5217fa
push edi
mov ecx, esi
call fcn.0051f9f0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov ecx, dword [esi + 0x48]
push ecx
call fcn.0052fc20
add esp, 4
cmp eax, ebx
jne 0x522313
cmp byte [edi + 1], bl
push ebp
je 0x521850
mov ebp, dword [esi + 0x4c]
xor ebx, ebx
cmp word [edi + 0x14], bx
jbe 0x521854
nop
movzx edx, word [edi + 0xe]
mov eax, dword [edi + 0x44]
add edx, eax
xor ecx, ecx
mov ch, byte [edx + ebx*2]
lea esi, [edx + ebx*2]
mov cl, byte [esi + 1]
add ecx, eax
push ecx
call fcn.00517740
add esp, 4
cmp eax, ebp
je 0x521854
movzx edx, word [edi + 0x14]
add ebx, 1
cmp ebx, edx
jl 0x521820
jmp 0x521854
movzx ebx, word [esi + 0x10]
mov eax, dword [edi + 0x48]
xor esi, esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
call fcn.0052d760
movzx ecx, word [edi + 0x14]
lea eax, [ebx - 1]
lea edx, [eax + 3]
add esp, 4
cmp edx, ecx
mov dword [esp + 0x20], eax
jle 0x521883
lea eax, [ecx - 2]
mov dword [esp + 0x20], eax
cmp eax, esi
jge 0x52188d
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, eax
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
xor esi, esi
jmp 0x5218a0
movzx eax, word [edi + 0x14]
cmp ecx, eax
jge 0x5218c9
movzx ecx, word [edi + 0xe]
add ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x44]
movzx edx, byte [ecx + eax + 1]
mov dh, byte [ecx + eax]
add ecx, eax
add eax, edx
mov dword [esp + esi + 0x84], eax
push eax
jmp 0x5218db
jne 0x521999
movzx eax, byte [edi + 8]
mov ecx, dword [edi + 0x44]
lea edx, [eax + ecx + 8]
push edx
call fcn.00517740
add esp, 4
test eax, eax
mov dword [esp + esi + 0xa8], eax
je 0x52198f
push 0
lea ebx, [esp + esi + 0x7c]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0051d0e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x5222a9
mov eax, dword [ebx]
cmp byte [eax], 0
jne 0x521940
push edi
push eax
call fcn.0051cee0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x521948
mov eax, dword [ebx]
test eax, eax
je 0x52193a
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0052f990
add esp, 4
mov dword [ebx], 0
test ebp, ebp
jne 0x5222a9
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], 1
add dword [esp + 0x38], 2
mov word [eax + 0x10], cx
movzx edx, word [eax + 0x14]
movzx eax, byte [eax + 2]
add eax, dword [esp + 0x10]
mov dword [esp + esi + 0x9c], 0
add ecx, 1
add esi, 4
cmp esi, 0xc
lea edx, [eax + edx + 1]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jge 0x521999
jmp 0x5218a0
mov ebp, 0xb
jmp 0x5222a9
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov al, byte [edi + 0x16]
movzx ecx, word [edi + 0x1c]
add esi, 3
and esi, 0xfffffffc
neg al
sbb eax, eax
and eax, esi
lea edx, [eax + ecx*8 + 0x108]
lea eax, [esi + esi*2]
lea ecx, [edx + eax*2]
push ecx
call fcn.00512af0
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x5219dc
mov ebp, 7
jmp 0x5222a9
movzx ecx, word [edi + 0x1c]
lea eax, [eax + esi*4]
lea edx, [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], edx
mov eax, 1
mov edx, dword [esp + eax*4 + 0x4c]
lea edx, [edx + ecx + 0x58]
mov dword [esp + eax*4 + 0x50], edx
add eax, 1
cmp eax, 3
jl 0x5219f3
cmp byte [edi + 0x16], 0
mov eax, dword [esp + 0x58]
lea eax, [ecx + eax + 0x58]
mov dword [esp + 0x4c], eax
je 0x521a22
lea eax, [eax + ecx*4]
add eax, ecx
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x14]
xor ebp, ebp
test ebx, ebx
jle 0x521a6d
lea esp, [esp]
mov eax, dword [esp + ebp*4 + 0x50]
mov edx, dword [esp + ebp*4 + 0x78]
mov edi, eax
mov esi, edx
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x54]
mov dword [eax + 0x44], ecx
mov edx, dword [edx + 0x44]
mov dword [esp + ebp*4 + 0x9c], eax
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 0x1c]
push eax
push edx
push ecx
call fcn.0048eff0
add ebp, 1
add esp, 0xc
cmp ebp, ebx
jl 0x521a30
mov edx, dword [esp + 0x118]
mov cl, byte [edx + 4]
movzx eax, cl
add eax, eax
xor ebx, ebx
add eax, eax
cmp byte [edx + 6], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], eax
je 0x521a99
test cl, cl
mov dword [esp + 0x18], 1
jne 0x521a9d
mov dword [esp + 0x18], ebx
xor eax, eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jle 0x521ca1
lea ecx, [ecx]
mov edi, dword [esp + eax*4 + 0x9c]
movzx ecx, word [edi + 0x14]
movzx edx, byte [edi + 2]
add ecx, edx
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x34], ecx
jle 0x521b92
nop
movzx eax, byte [edi + 2]
sub eax, 1
mov ecx, ebp
js 0x521afb
lea edx, [edi + eax*8 + 0x18]
nop
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x521af1
je 0x521b72
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x521ae0
movzx edx, word [edi + 0xe]
mov eax, dword [edi + 0x44]
add edx, eax
lea ecx, [edx + ecx*2]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
add eax, edx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xb4]
push edx
push eax
push edi
mov dword [ecx + ebx*4], eax
call fcn.0051c8e0
mov ax, word [esp + 0xde]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov word [ecx + ebx*2], ax
cmp byte [edx + 0x16], 0
je 0x521b7e
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebx], al
movzx ecx, byte [edi + 2]
xor eax, eax
test ecx, ecx
jle 0x521b7e
mov edx, dword [esp + 0x2c]
mov esi, dword [edx + ebx*4]
lea edx, [edi + 0x18]
cmp dword [edx], esi
je 0x521b76
add eax, 1
add edx, 8
cmp eax, ecx
jl 0x521b62
jmp 0x521b7e
mov eax, dword [edx]
jmp 0x521b10
mov eax, dword [esp + 0x44]
mov byte [eax + ebx], 0xff
add ebp, 1
add ebx, 1
cmp ebp, dword [esp + 0x34]
jl 0x521ad0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x521c8c
mov eax, dword [esp + eax*4 + 0x84]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xd4]
push ecx
push eax
push edx
mov dword [esp + 0x40], eax
call fcn.0051c8e0
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x521be7
mov eax, dword [esp + 0x20]
movzx ecx, word [esp + 0xf2]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0051f6b0
add esp, 4
jmp 0x521c88
mov ax, word [esp + 0xf2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
movzx esi, ax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
push esi
lea ebp, [edx + ecx]
push eax
add ecx, esi
push ebp
mov dword [esp + 0x4c], ecx
call fcn.0048eff0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ebp, ecx
add esp, 0xc
mov dword [edx + ebx*4], ebp
cmp byte [eax + 0x16], 0
je 0x521c39
mov ecx, dword [esp + 0x44]
mov byte [ecx + ebx], 0xff
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, dword [esp + 0x1c]
push edx
call fcn.0051f6b0
mov cx, word [esp + 0x3c]
mov eax, dword [esp + 0x28]
sub word [eax + ebx*2], cx
movzx ecx, word [eax + ebx*2]
add esp, 4
cmp byte [edi + 4], 0
jne 0x521c79
movzx edx, byte [edi + 8]
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [edx + eax + 8]
mov dword [ecx], edx
jmp 0x521c85
cmp cx, 4
jae 0x521c85
mov word [eax + ebx*2], 4
add ebx, 1
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x521ab0
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x30]
movzx ecx, word [eax + 0x1e]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
lea esi, [ecx + edx - 0xc]
xor ecx, ecx
xor ebx, ebx
xor eax, eax
test edi, edi
jle 0x521cf3
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
movzx edx, word [edx + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, esi
jle 0x521cec
sub eax, edx
test ebp, ebp
mov dword [esp + ebx*4 + 0x64], eax
mov dword [esp + ebx*4 + 0x84], ecx
je 0x521ce7
sub ecx, 1
xor eax, eax
add ebx, 1
add ecx, 1
cmp ecx, edi
jl 0x521cc3
mov dword [esp + ebx*4 + 0x84], edi
add ebx, 1
mov dword [esp + ebx*4 + 0x60], eax
lea edi, [ebx - 1]
test edi, edi
mov dword [esp + 0x34], ebx
jle 0x521d8e
mov eax, dword [esp + edi*4 + 0x80]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + edi*4 + 0x64]
mov esi, dword [esp + edi*4 + 0x60]
sub eax, 1
mov ecx, eax
sub ecx, dword [esp + 0x18]
add ecx, 1
test edx, edx
je 0x521d52
movzx ebx, word [ebx + eax*2]
mov ebp, esi
sub ebp, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, word [ebx + ecx*2]
sub ebp, 2
lea ebx, [ebx + edx + 2]
cmp ebx, ebp
jg 0x521d7b
mov ebx, dword [esp + 0x24]
movzx ecx, word [ebx + ecx*2]
movzx eax, word [ebx + eax*2]
add dword [esp + edi*4 + 0x80], 0xffffffff
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + edi*4 + 0x80]
add esi, ecx
add eax, 0xffffffff
jmp 0x521d26
mov dword [esp + edi*4 + 0x64], edx
mov dword [esp + edi*4 + 0x60], esi
sub edi, 1
test edi, edi
jg 0x521d10
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x118]
mov eax, dword [edx + 0x44]
movzx ecx, byte [eax]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x34], ecx
jle 0x521e3f
lea esp, [esp]
cmp edi, dword [esp + 0x14]
jge 0x521df2
mov esi, dword [esp + edi*4 + 0x78]
mov eax, dword [esi + 0x48]
mov edx, dword [esp + edi*4 + 0xa8]
push eax
mov dword [esp + edi*4 + 0x54], esi
mov dword [esp + 0x14], esi
mov dword [esp + edi*4 + 0x68], edx
mov dword [esp + edi*4 + 0x7c], 0
call fcn.0052fc20
add dword [esp + 0x2c], 1
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5222a9
jmp 0x521e27
mov ecx, dword [esp + edi*4 + 0x60]
lea eax, [esp + edi*4 + 0x64]
push 0
push ecx
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0051eaf0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x5222a9
mov esi, dword [esp + 0x10]
add dword [esp + 0x28], 1
mov dword [esp + edi*4 + 0x50], esi
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0051d050
add edi, 1
add esp, 4
cmp edi, ebx
jl 0x521db0
cmp edi, dword [esp + 0x14]
jge 0x521e79
mov esi, dword [esp + edi*4 + 0x78]
call fcn.0051f010
mov ebp, eax
test ebp, ebp
jne 0x5222a9
test esi, esi
je 0x521e68
mov edx, dword [esi + 0x48]
push edx
call fcn.0052f990
add esp, 4
mov dword [esp + edi*4 + 0x78], 0
add edi, 1
cmp edi, dword [esp + 0x14]
jl 0x521e45
lea eax, [ebx - 1]
xor ecx, ecx
test eax, eax
jle 0x521ef8
lea eax, [esp + ecx*4 + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
lea ebp, [ecx + 1]
cmp ebp, ebx
mov dword [esp + 0x10], eax
mov edi, eax
mov edx, ecx
mov dword [esp + 0x98], ebp
mov eax, ebp
jge 0x521eef
mov esi, dword [esp + eax*4 + 0x64]
cmp esi, edi
jae 0x521eb4
mov edx, eax
mov edi, esi
add eax, 1
cmp eax, ebx
jl 0x521ea8
cmp edx, ecx
jle 0x521eef
mov edi, dword [esp + edx*4 + 0x64]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + ecx*4 + 0x50]
lea eax, [esp + edx*4 + 0x64]
lea ecx, [esp + ecx*4 + 0x50]
mov dword [ebp], edi
mov edi, dword [esp + edx*4 + 0x50]
mov ebp, dword [esp + 0x98]
lea edx, [esp + edx*4 + 0x50]
mov dword [ecx], edi
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [edx], esi
mov ecx, ebp
lea eax, [ebx - 1]
cmp ecx, eax
jl 0x521e86
mov ebp, dword [esp + 0x28]
xor esi, esi
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x10], esi
jle 0x5221c8
lea esp, [esp]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + esi*4 + 0x84]
mov edi, dword [esp + esi*4 + 0x50]
lea eax, [edx + ebx*2]
push eax
lea edx, [ecx + ebx*4]
push edx
mov eax, ebp
sub eax, ebx
push eax
push edi
call fcn.0051f900
mov ecx, dword [esp + 0x40]
add esp, 0x10
cmp byte [ecx + 0x16], 0
je 0x521fdf
cmp ebx, ebp
jge 0x521fdf
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x44]
mov al, byte [ebx + edx]
cmp al, 0xff
je 0x521f72
movzx eax, al
mov edx, dword [esp + eax*4 + 0x9c]
mov eax, dword [edx + 0x4c]
cmp eax, dword [edi + 0x4c]
je 0x521fc4
movzx eax, byte [edi + 2]
sub eax, 1
js 0x521f9b
lea edx, [edi + eax*8 + 0x18]
nop
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x521f91
je 0x52202e
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x521f80
movzx edx, word [edi + 0xe]
mov eax, dword [edi + 0x44]
add edx, eax
lea ecx, [edx + ecx*2]
movzx edx, byte [ecx + 1]
mov dh, byte [ecx]
add edx, eax
mov eax, edx
call fcn.0051ca30
mov ebp, eax
test ebp, ebp
jne 0x5222a9
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
add ebx, 1
add ecx, 1
cmp ebx, dword [esp + esi*4 + 0x84]
mov dword [esp + 0x3c], ecx
jl 0x521f55
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + esi*4 + 0x84]
add eax, 0xffffffff
cmp esi, eax
jge 0x5221b3
cmp ebx, dword [esp + 0x48]
jge 0x5221b3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov esi, dword [ecx + ebx*4]
movzx ecx, word [edx + ebx*2]
movzx eax, cx
add eax, dword [esp + 0x38]
cmp byte [edi + 4], 0
mov dword [esp + 0x3c], eax
jne 0x522035
mov ecx, dword [edi + 0x44]
mov edx, dword [esi]
mov dword [ecx + 8], edx
xor ebp, ebp
jmp 0x5220d4
mov edx, dword [edx]
jmp 0x521faf
cmp dword [esp + 0x18], 0
je 0x52209d
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebx*4 - 4]
lea eax, [esp + 0xb4]
sub ebx, 1
push eax
push edx
push edi
call fcn.0051c8e0
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0xcc]
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
lea esi, [eax + ebp]
mov eax, dword [esp + 0xd8]
push edx
push eax
mov eax, dword [esp + 0x40]
push 0
push esi
call fcn.0051f2d0
mov eax, dword [esp + 0x68]
add ebp, eax
add esp, 0x2c
mov dword [esp + 0x40], ebp
xor ebp, ebp
jmp 0x5220d4
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x4c]
add ebp, edx
add edx, eax
sub esi, 4
cmp cx, 4
mov dword [esp + 0x40], edx
jne 0x5220d4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xf4]
push ecx
push esi
push edx
call fcn.0051c8e0
movzx eax, word [esp + 0x11e]
add esp, 0xc
mov ecx, dword [esp + 0x20]
push 4
push eax
push esi
mov esi, dword [esp + 0x28]
mov eax, ebp
call fcn.0051f730
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x5222a9
mov ecx, dword [esp + 0x20]
mov ebp, esi
movzx eax, byte [ebp + 2]
sub eax, 1
js 0x522122
lea edx, [ebp + eax*8 + 0x18]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x522118
je 0x522213
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x522107
movzx edx, word [ebp + 0xe]
mov eax, dword [ebp + 0x44]
add edx, eax
lea esi, [edx + ecx*2]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
add edx, eax
mov eax, dword [edi + 0x4c]
push eax
push edx
call fcn.00517760
mov ecx, dword [esp + 0x38]
add esp, 8
cmp byte [ecx + 0x16], 0
je 0x5221a7
cmp dword [esp + 0x18], 0
jne 0x5221a7
movzx eax, byte [ebp + 2]
sub eax, 1
mov ecx, dword [esp + 0x20]
js 0x522180
lea edx, [ebp + eax*8 + 0x18]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x522176
je 0x52221a
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x522165
movzx edx, word [ebp + 0xe]
mov eax, dword [ebp + 0x44]
add edx, eax
lea esi, [edx + ecx*2]
movzx edx, byte [esi + 1]
mov dh, byte [esi]
add edx, eax
mov eax, edx
mov edi, ebp
call fcn.0051ca30
mov ebp, eax
test ebp, ebp
jne 0x5222a9
mov esi, dword [esp + 0x10]
add ebx, 1
add dword [esp + 0x20], 1
add esi, 1
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
jl 0x521f10
mov ebp, dword [esp + 0x28]
test byte [esp + 0x34], 8
jne 0x5221ea
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x98]
mov edx, dword [ecx + 0x44]
mov eax, dword [esp + ebp*4 + 0x4c]
mov ecx, dword [eax + 0x44]
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov edi, dword [esp + 0x1c]
movzx eax, byte [edi + 2]
movzx edx, word [edi + 0x14]
mov ecx, dword [esp + 0x20]
add edx, eax
cmp ecx, edx
jne 0x522221
mov eax, dword [esp + ebp*4 + 0x60]
movzx ecx, byte [edi + 8]
mov edx, dword [edi + 0x44]
push eax
lea eax, [ecx + edx + 8]
push eax
jmp 0x522266
mov edx, dword [edx]
jmp 0x522136
mov edx, dword [edx]
jmp 0x522194
add eax, 0xffffffff
js 0x52224b
lea edx, [edi + eax*8 + 0x18]
lea ebx, [ebx]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x522241
je 0x52231d
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x522230
movzx edx, word [edi + 0xe]
mov eax, dword [edi + 0x44]
add edx, eax
lea ecx, [edx + ecx*2]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
add edx, eax
mov eax, dword [esp + ebp*4 + 0x60]
push eax
push edx
call fcn.00517760
add esp, 8
xor edi, edi
test ebp, ebp
jle 0x52228c
mov esi, dword [esp + edi*4 + 0x50]
call fcn.0051f630
mov ebp, eax
test ebp, ebp
jne 0x5222a9
add edi, 1
cmp edi, dword [esp + 0x28]
jl 0x522274
mov esi, dword [esp + 0x1c]
call fcn.0051f630
mov ebp, eax
test ebp, ebp
jne 0x5222a9
push eax
mov ecx, esi
push ecx
call fcn.00522490
add esp, 8
mov ebp, eax
mov edx, dword [esp + 0x2c]
push edx
call fcn.00512c00
mov edi, dword [esp + 0x18]
add esp, 4
xor esi, esi
test edi, edi
jle 0x5222db
mov eax, dword [esp + esi*4 + 0x78]
test eax, eax
je 0x5222d4
mov eax, dword [eax + 0x48]
push eax
call fcn.0052f990
add esp, 4
add esi, 1
cmp esi, edi
jl 0x5222c0
mov edi, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x522300
mov eax, dword [esp + esi*4 + 0x50]
test eax, eax
je 0x5222f9
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0052f990
add esp, 4
add esi, 1
cmp esi, edi
jl 0x5222e5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x48]
push eax
call fcn.0052f990
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov edx, dword [edx]
jmp 0x522260