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

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
xor eax, eax
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov bl, byte [edi + 0x17]
push ebp
push edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], eax
call fcn.00524e60
add esp, 8
test eax, eax
jne 0x52636f
push ebp
push edi
call fcn.004e9080
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0xb0
jne 0x525597
mov cl, byte [eax + 2]
cmp cl, 0xb1
jne 0x5255a3
mov eax, dword [eax + 0x14]
mov ebp, dword [eax]
jmp 0x5255b7
cmp cl, 0x8a
jne 0x5255b2
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov ebp, dword [eax]
jmp 0x5255b7
mov ebp, 1
mov eax, dword [edi]
push esi
lea esi, [ebp*4 + 1]
mov dword [esp + 0x1c], ebp
add esi, ebp
push 0
push esi
test eax, eax
je 0x5255df
push eax
call fcn.00521f00
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
jmp 0x5255ed
call fcn.005387b0
add esp, 8
mov dword [esp + 0x20], eax
mov ecx, eax
test ecx, ecx
je 0x525601
push esi
push 0
push ecx
call sub.MSVCRT.dll_memset
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x5261ec
mov esi, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x58]
push ecx
neg eax
lea ecx, [esp + 0x44]
sbb eax, eax
and eax, ecx
push eax
push 3
push dword [esp + 0x5c]
push edi
call fcn.00529af0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push eax
push edi
mov byte [edi + 0x17], 0
call fcn.004e8b40
add esp, 0x24
mov dword [esp + 0x34], eax
xor ecx, ecx
mov byte [edi + 0x17], bl
test ebp, ebp
jle 0x52566f
mov eax, dword [esp + 0x20]
cmp dword [eax + ecx*4], ecx
jne 0x52566b
inc ecx
cmp ecx, ebp
jl 0x525661
mov eax, dword [esp + 0x34]
cmp ecx, ebp
jne 0x52567e
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x525705
push ebp
push edi
call fcn.00533dd0
add esp, 8
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x14], ecx
test ebp, ebp
jle 0x525705
mov ebp, dword [esp + 0x34]
mov edi, eax
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + ebx*4]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x5256c2
push 0
push edx
push ebp
push 0x4f
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x5256f1
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc ebx
inc ebp
cmp ebx, dword [esp + 0x1c]
jl 0x5256a0
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x38], 5
jne 0x525b38
dec dword [edi + 0x38]
xor ebx, ebx
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], ebx
push dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
push edi
mov dword [esp + 0x2c], ecx
call fcn.005276d0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
je 0x5257ac
mov al, byte [edi + 0x13]
test al, al
jne 0x525752
inc dword [edi + 0x2c]
mov ebx, dword [edi + 0x2c]
jmp 0x525761
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebx, dword [edi + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x48], ebx
cmp dword [esi + 0x78], ecx
jg 0x525781
mov eax, dword [esp + 0x14]
push ebx
push eax
push eax
push 0x66
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x5257ac
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], 0
cmp dword [eax], 0
jle 0x525a45
lea ecx, [eax + 8]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x40]
push eax
push dword [ecx]
push edi
call fcn.005275b0
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x48], 0
mov dword [esp + 0x30], ebx
je 0x52583e
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.00524d80
add esp, 4
test eax, eax
je 0x52583e
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525813
mov eax, dword [esp + 0x48]
push eax
push ebx
push eax
push 0x66
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x52583e
mov edx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x52585a
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x52585a
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
dec eax
cmp dword [esp + 0x4c], eax
jl 0x525952
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x50]
jne 0x525952
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esi + 0x74]
cmp ecx, ebx
setne al
lea eax, [eax*2 + 0x32]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], edx
jg 0x5258ac
push ebx
mov ebx, dword [esp + 0x54]
push ebx
push ecx
push eax
push esi
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x5258eb
mov ebx, dword [esp + 0x38]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x525901
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004eccc0
add esp, 0xc
jmp 0x525933
test edx, edx
jns 0x525909
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x525928
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00564cf0
add esp, 0x10
jmp 0x525933
test ebp, ebp
je 0x525933
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov ecx, dword [esi + 0x74]
test ecx, ecx
jle 0x525a25
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov al, byte [eax]
or al, 0x10
movsx dx, al
jmp 0x525a1d
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esi + 0x74]
cmp ecx, ebx
setne al
lea eax, [eax*2 + 0x33]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], edx
jg 0x525984
push ebx
push dword [esp + 0x20]
push ecx
push eax
push esi
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x5259c3
mov ebx, dword [esp + 0x38]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5259d9
push ebp
push 0xfffffffffffffffe
push eax
call fcn.004eccc0
add esp, 0xc
jmp 0x525a0b
test edx, edx
jns 0x5259e1
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x525a00
push 0xfffffffffffffffe
push ebp
push eax
push esi
call fcn.00564cf0
add esp, 0x10
jmp 0x525a0b
test ebp, ebp
je 0x525a0b
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x525a25
mov ecx, dword [esp + 0x2c]
movsx dx, byte [ecx]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
inc eax
mov ecx, dword [esp + 0x28]
add ecx, 0x14
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [edx]
jl 0x5257c8
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x525aec
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525a6d
push 0
push dword [esp + 0x58]
push ebx
push 0x32
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525a9c
mov edx, dword [esp + 0x54]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525ab9
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525aec
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x525b0a
push edx
push esi
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x525b13
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
test ebx, ebx
je 0x5261ca
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5261ca
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebx
inc byte [edi + 0x13]
jmp 0x5261ca
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x54], edx
jne 0x525b48
mov dword [esp + 0x28], edx
jmp 0x525b56
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
test ebp, ebp
jle 0x525c3b
mov ebp, ecx
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0xc]
mov al, byte [ecx]
mov byte [esp + 0x13], al
cmp al, 0xb0
jne 0x525b84
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x525b8f
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
jmp 0x525b9b
cmp al, 0x8a
jne 0x525bba
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x525bba
cmp byte [esp + 0x13], 0x8a
je 0x525bb3
cmp byte [ecx + 2], 0x8a
je 0x525bb3
mov ecx, dword [ebx + edx + 8]
jmp 0x525bba
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebx + 8]
cmp dword [edi + 0x24], 0
jne 0x5261ec
push ecx
call fcn.00524d80
add esp, 4
test eax, eax
je 0x525c1c
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525bed
push 0
push dword [esp + 0x2c]
push ebp
push 0x32
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525c1c
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x30]
add ebx, 0x14
inc edx
inc ebp
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x1c]
jl 0x525b70
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x38], 1
jne 0x525cea
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x78], ecx
jg 0x525c65
push dword [esp + 0x14]
push edx
push ebx
push 0x20
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525c90
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x30], edx
cmp dword [esi + 0x78], edx
jg 0x525cb2
push 0
push 0
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525d76
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x525d7a
mov edx, dword [esi + 0x74]
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x78], edx
jg 0x525d09
push 0
push ebp
push ebx
push 0x5f
push esi
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x525d34
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5f
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push ebp
push dword [esp + 0x30]
push edx
push esi
call fcn.0054b970
mov eax, dword [esp + 0x60]
add esp, 0x10
push ebp
push ebx
cmp eax, dword [esp + 0x5c]
jne 0x525d64
push eax
push dword [esp + 0x24]
push 0x1e
push esi
call fcn.0054b580
add esp, 0x18
jmp 0x5261ca
mov ebx, dword [esp + 0x20]
push 0
push ebx
push 0x1f
push esi
call fcn.0054b580
add esp, 0x18
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x525dd6
cmp ebp, 1
jne 0x525dd6
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525da3
push 0
push dword [esp + 0x54]
push edx
push 0x33
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525dd6
mov edi, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
jne 0x525e2d
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x525dfa
push 0
push eax
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525e2d
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x40]
test edx, edx
je 0x525e58
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x525e4f
push edx
push esi
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x525e58
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x74]
mov dword [esp + 0x38], edx
cmp dword [esi + 0x78], edx
jg 0x525e80
push 0
push dword [esp + 0x54]
push ebx
push 0x26
push esi
call fcn.004ffef0
mov edx, dword [esp + 0x64]
add esp, 0x14
mov dword [esp + 0x38], eax
jmp 0x525eaf
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp ebp, 1
jle 0x525ec0
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x28], eax
jmp 0x525ec4
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], 0
test ebp, ebp
jle 0x526088
xor ebx, ebx
mov dword [esp + 0x40], ebx
lea ebx, [ebx]
mov al, byte [edi + 0x13]
test al, al
jne 0x525eef
inc dword [edi + 0x2c]
mov ebp, dword [edi + 0x2c]
jmp 0x525efe
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov ebp, dword [edi + eax*4 + 0x98]
mov ecx, dword [esp + 0x24]
mov dl, byte [ecx]
mov al, dl
cmp al, 0xb0
jne 0x525f0d
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x525f18
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx]
jmp 0x525f24
cmp al, 0x8a
jne 0x525f4b
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
cmp eax, 1
jle 0x525f47
cmp dl, 0x8a
je 0x525f3e
mov eax, dword [esp + 0x24]
cmp byte [eax + 2], 0x8a
je 0x525f3e
mov eax, dword [ecx + ebx + 8]
jmp 0x525f4d
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + ebx + 8]
jmp 0x525f4d
mov ecx, dword [esp + 0x24]
mov eax, ecx
push eax
push edi
call fcn.005276d0
mov ecx, dword [esi + 0x74]
add esp, 8
mov ebx, eax
cmp dword [esi + 0x78], ecx
jg 0x525f78
mov edx, dword [esp + 0x4c]
push ebp
push edx
push dword [esp + 0x20]
push 0x5d
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x525fa7
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x525fcc
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x14]
push ebp
push dword [esp + 0x2c]
push eax
push 0x34
push esi
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x526004
mov edi, dword [esp + 0x48]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x52601a
push ebx
push 0xfffffffffffffffe
push eax
call fcn.004eccc0
add esp, 0xc
jmp 0x52604c
test edx, edx
jns 0x526022
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x526041
push 0xfffffffffffffffe
push ebx
push eax
push esi
call fcn.00564cf0
add esp, 0x10
jmp 0x52604c
test ebx, ebx
je 0x52604c
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xfe
test ebp, ebp
je 0x526064
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x526064
movzx eax, al
mov dword [edi + eax*4 + 0x98], ebp
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
inc ecx
mov ebp, dword [esp + 0x1c]
add ebx, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], ebx
cmp ecx, ebp
jl 0x525ee0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5260a5
push 0
push dword [esp + 0x58]
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x5260d8
mov edx, dword [esp + 0x54]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp ebp, 1
jle 0x5261a1
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5260ff
push edx
push esi
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x526108
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x526126
push 0
push edx
push ebx
push 5
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x526151
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x52616e
push 0
push dword [esp + 0x54]
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x5261a1
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x5261af
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5261be
mov eax, 0x5e05ac
jmp 0x5261c7
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x34]
je 0x5261ec
test ecx, ecx
je 0x5261ec
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5261ec
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ebx, dword [esp + 0x20]
mov ecx, dword [edi]
pop esi
test ebx, ebx
je 0x5262a4
test ecx, ecx
je 0x52624f
cmp dword [ecx + 0x210], 0
je 0x526217
push ebx
push ecx
call fcn.00506030
add esp, 8
jmp 0x5262a4
cmp ebx, dword [ecx + 0x164]
jae 0x52624f
cmp ebx, dword [ecx + 0x15c]
jb 0x526237
mov eax, dword [ecx + 0x158]
mov dword [ebx], eax
mov dword [ecx + 0x158], ebx
jmp 0x5262a4
cmp ebx, dword [ecx + 0x160]
jb 0x52624f
mov eax, dword [ecx + 0x150]
mov dword [ebx], eax
mov dword [ecx + 0x150], ebx
jmp 0x5262a4
cmp dword [0x5d72d8], 0
je 0x52629a
mov eax, dword [0x5e0280]
test eax, eax
je 0x52626b
push eax
call dword [0x5d7328]
add esp, 4
push ebx
call dword [0x5d7304]
sub dword [0x5e0208], eax
dec dword [0x5e022c]
push ebx
call dword [0x5d72fc]
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x5262a4
push eax
call dword [0x5d7330]
jmp 0x5262a1
push ebx
call dword [0x5d72fc]
add esp, 4
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi]
test ebx, ebx
je 0x52636f
test ecx, ecx
je 0x526312
cmp dword [ecx + 0x210], 0
je 0x5262d0
push ebx
push ecx
call fcn.00506030
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
cmp ebx, dword [ecx + 0x164]
jae 0x526312
cmp ebx, dword [ecx + 0x15c]
jb 0x5262f5
mov eax, dword [ecx + 0x158]
pop edi
mov dword [ebx], eax
pop ebp
mov dword [ecx + 0x158], ebx
pop ebx
add esp, 0x34
ret
cmp ebx, dword [ecx + 0x160]
jb 0x526312
mov eax, dword [ecx + 0x150]
pop edi
mov dword [ebx], eax
pop ebp
mov dword [ecx + 0x150], ebx
pop ebx
add esp, 0x34
ret
cmp dword [0x5d72d8], 0
je 0x526365
mov eax, dword [0x5e0280]
test eax, eax
je 0x52632e
push eax
call dword [0x5d7328]
add esp, 4
push ebx
call dword [0x5d7304]
sub dword [0x5e0208], eax
dec dword [0x5e022c]
push ebx
call dword [0x5d72fc]
mov eax, dword [0x5e0280]
add esp, 8
test eax, eax
je 0x52636f
push eax
call dword [0x5d7330]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call dword [0x5d72fc]
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x34
ret