Function at 0x513370
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.00521820
add esp, 4
cmp eax, ebx
jne 0x513f23
cmp byte [esi + 4], bl
je 0x51340a
cmp byte [esi + 3], bl
je 0x51340a
cmp byte [esi + 6], bl
je 0x51340a
cmp byte [esi + 2], 1
jne 0x51340a
mov dx, word [esi + 0x1c]
cmp dx, word [esi + 0x14]
jne 0x51340a
mov eax, dword [esi + 0x50]
cmp dword [eax + 0x4c], 1
je 0x51340a
movzx ecx, byte [edi + 8]
mov edx, dword [edi + 0x44]
lea eax, [ecx + edx + 8]
push eax
call fcn.00509350
add esp, 4
cmp eax, dword [esi + 0x4c]
jne 0x51340a
push edi
mov ecx, esi
call fcn.00511600
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov ecx, dword [esi + 0x48]
push ecx
call fcn.00521820
add esp, 4
cmp eax, ebx
jne 0x513f23
cmp byte [edi + 1], bl
push ebp
je 0x513460
mov ebp, dword [esi + 0x4c]
xor ebx, ebx
cmp word [edi + 0x14], bx
jbe 0x513464
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.00509350
add esp, 4
cmp eax, ebp
je 0x513464
movzx edx, word [edi + 0x14]
add ebx, 1
cmp ebx, edx
jl 0x513430
jmp 0x513464
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.0051f370
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 0x513493
lea eax, [ecx - 2]
mov dword [esp + 0x20], eax
cmp eax, esi
jge 0x51349d
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 0x5134b0
movzx eax, word [edi + 0x14]
cmp ecx, eax
jge 0x5134d9
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 0x5134eb
jne 0x5135a9
movzx eax, byte [edi + 8]
mov ecx, dword [edi + 0x44]
lea edx, [eax + ecx + 8]
push edx
call fcn.00509350
add esp, 4
test eax, eax
mov dword [esp + esi + 0xa8], eax
je 0x51359f
push 0
lea ebx, [esp + esi + 0x7c]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0050ecf0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x513eb9
mov eax, dword [ebx]
cmp byte [eax], 0
jne 0x513550
push edi
push eax
call fcn.0050eaf0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x513558
mov eax, dword [ebx]
test eax, eax
je 0x51354a
mov ecx, dword [eax + 0x48]
push ecx
call fcn.00521590
add esp, 4
mov dword [ebx], 0
test ebp, ebp
jne 0x513eb9
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 0x5135a9
jmp 0x5134b0
mov ebp, 0xb
jmp 0x513eb9
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.00504700
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x5135ec
mov ebp, 7
jmp 0x513eb9
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 0x513603
cmp byte [edi + 0x16], 0
mov eax, dword [esp + 0x58]
lea eax, [ecx + eax + 0x58]
mov dword [esp + 0x4c], eax
je 0x513632
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 0x51367d
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.004b58f0
add ebp, 1
add esp, 0xc
cmp ebp, ebx
jl 0x513640
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 0x5136a9
test cl, cl
mov dword [esp + 0x18], 1
jne 0x5136ad
mov dword [esp + 0x18], ebx
xor eax, eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jle 0x5138b1
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 0x5137a2
nop
movzx eax, byte [edi + 2]
sub eax, 1
mov ecx, ebp
js 0x51370b
lea edx, [edi + eax*8 + 0x18]
nop
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x513701
je 0x513782
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x5136f0
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.0050e4f0
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 0x51378e
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 0x51378e
mov edx, dword [esp + 0x2c]
mov esi, dword [edx + ebx*4]
lea edx, [edi + 0x18]
cmp dword [edx], esi
je 0x513786
add eax, 1
add edx, 8
cmp eax, ecx
jl 0x513772
jmp 0x51378e
mov eax, dword [edx]
jmp 0x513720
mov eax, dword [esp + 0x44]
mov byte [eax + ebx], 0xff
add ebp, 1
add ebx, 1
cmp ebp, dword [esp + 0x34]
jl 0x5136e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffff
cmp eax, ecx
jge 0x51389c
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.0050e4f0
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x5137f7
mov eax, dword [esp + 0x20]
movzx ecx, word [esp + 0xf2]
mov esi, dword [esp + 0x1c]
push eax
call fcn.005112c0
add esp, 4
jmp 0x513898
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.004b58f0
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 0x513849
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.005112c0
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 0x513889
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 0x513895
cmp cx, 4
jae 0x513895
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 0x5136c0
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 0x513903
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 0x5138fc
sub eax, edx
test ebp, ebp
mov dword [esp + ebx*4 + 0x64], eax
mov dword [esp + ebx*4 + 0x84], ecx
je 0x5138f7
sub ecx, 1
xor eax, eax
add ebx, 1
add ecx, 1
cmp ecx, edi
jl 0x5138d3
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 0x51399e
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 0x513962
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 0x51398b
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 0x513936
mov dword [esp + edi*4 + 0x64], edx
mov dword [esp + edi*4 + 0x60], esi
sub edi, 1
test edi, edi
jg 0x513920
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 0x513a4f
lea esp, [esp]
cmp edi, dword [esp + 0x14]
jge 0x513a02
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.00521820
add dword [esp + 0x2c], 1
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x513eb9
jmp 0x513a37
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.00510700
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x513eb9
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.0050ec60
add edi, 1
add esp, 4
cmp edi, ebx
jl 0x5139c0
cmp edi, dword [esp + 0x14]
jge 0x513a89
mov esi, dword [esp + edi*4 + 0x78]
call fcn.00510c20
mov ebp, eax
test ebp, ebp
jne 0x513eb9
test esi, esi
je 0x513a78
mov edx, dword [esi + 0x48]
push edx
call fcn.00521590
add esp, 4
mov dword [esp + edi*4 + 0x78], 0
add edi, 1
cmp edi, dword [esp + 0x14]
jl 0x513a55
lea eax, [ebx - 1]
xor ecx, ecx
test eax, eax
jle 0x513b08
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 0x513aff
mov esi, dword [esp + eax*4 + 0x64]
cmp esi, edi
jae 0x513ac4
mov edx, eax
mov edi, esi
add eax, 1
cmp eax, ebx
jl 0x513ab8
cmp edx, ecx
jle 0x513aff
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 0x513a96
mov ebp, dword [esp + 0x28]
xor esi, esi
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x10], esi
jle 0x513dd8
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.00511510
mov ecx, dword [esp + 0x40]
add esp, 0x10
cmp byte [ecx + 0x16], 0
je 0x513bef
cmp ebx, ebp
jge 0x513bef
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x44]
mov al, byte [ebx + edx]
cmp al, 0xff
je 0x513b82
movzx eax, al
mov edx, dword [esp + eax*4 + 0x9c]
mov eax, dword [edx + 0x4c]
cmp eax, dword [edi + 0x4c]
je 0x513bd4
movzx eax, byte [edi + 2]
sub eax, 1
js 0x513bab
lea edx, [edi + eax*8 + 0x18]
nop
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x513ba1
je 0x513c3e
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x513b90
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.0050e640
mov ebp, eax
test ebp, ebp
jne 0x513eb9
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 0x513b65
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + esi*4 + 0x84]
add eax, 0xffffffff
cmp esi, eax
jge 0x513dc3
cmp ebx, dword [esp + 0x48]
jge 0x513dc3
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 0x513c45
mov ecx, dword [edi + 0x44]
mov edx, dword [esi]
mov dword [ecx + 8], edx
xor ebp, ebp
jmp 0x513ce4
mov edx, dword [edx]
jmp 0x513bbf
cmp dword [esp + 0x18], 0
je 0x513cad
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.0050e4f0
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.00510ee0
mov eax, dword [esp + 0x68]
add ebp, eax
add esp, 0x2c
mov dword [esp + 0x40], ebp
xor ebp, ebp
jmp 0x513ce4
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 0x513ce4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xf4]
push ecx
push esi
push edx
call fcn.0050e4f0
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.00511340
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x513eb9
mov ecx, dword [esp + 0x20]
mov ebp, esi
movzx eax, byte [ebp + 2]
sub eax, 1
js 0x513d32
lea edx, [ebp + eax*8 + 0x18]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x513d28
je 0x513e23
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x513d17
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.00509370
mov ecx, dword [esp + 0x38]
add esp, 8
cmp byte [ecx + 0x16], 0
je 0x513db7
cmp dword [esp + 0x18], 0
jne 0x513db7
movzx eax, byte [ebp + 2]
sub eax, 1
mov ecx, dword [esp + 0x20]
js 0x513d90
lea edx, [ebp + eax*8 + 0x18]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x513d86
je 0x513e2a
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x513d75
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.0050e640
mov ebp, eax
test ebp, ebp
jne 0x513eb9
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 0x513b20
mov ebp, dword [esp + 0x28]
test byte [esp + 0x34], 8
jne 0x513dfa
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 0x513e31
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 0x513e76
mov edx, dword [edx]
jmp 0x513d46
mov edx, dword [edx]
jmp 0x513da4
add eax, 0xffffffff
js 0x513e5b
lea edx, [edi + eax*8 + 0x18]
lea ebx, [ebx]
movzx esi, word [edx + 4]
cmp esi, ecx
jg 0x513e51
je 0x513f2d
sub ecx, 1
sub eax, 1
sub edx, 8
test eax, eax
jge 0x513e40
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.00509370
add esp, 8
xor edi, edi
test ebp, ebp
jle 0x513e9c
mov esi, dword [esp + edi*4 + 0x50]
call fcn.00511240
mov ebp, eax
test ebp, ebp
jne 0x513eb9
add edi, 1
cmp edi, dword [esp + 0x28]
jl 0x513e84
mov esi, dword [esp + 0x1c]
call fcn.00511240
mov ebp, eax
test ebp, ebp
jne 0x513eb9
push eax
mov ecx, esi
push ecx
call fcn.005140a0
add esp, 8
mov ebp, eax
mov edx, dword [esp + 0x2c]
push edx
call fcn.00504810
mov edi, dword [esp + 0x18]
add esp, 4
xor esi, esi
test edi, edi
jle 0x513eeb
mov eax, dword [esp + esi*4 + 0x78]
test eax, eax
je 0x513ee4
mov eax, dword [eax + 0x48]
push eax
call fcn.00521590
add esp, 4
add esi, 1
cmp esi, edi
jl 0x513ed0
mov edi, dword [esp + 0x28]
xor esi, esi
test edi, edi
jle 0x513f10
mov eax, dword [esp + esi*4 + 0x50]
test eax, eax
je 0x513f09
mov ecx, dword [eax + 0x48]
push ecx
call fcn.00521590
add esp, 4
add esi, 1
cmp esi, edi
jl 0x513ef5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x48]
push eax
call fcn.00521590
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov edx, dword [edx]
jmp 0x513e70