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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1508
call fcn.00488a80
push esi
mov esi, ecx
mov eax, dword [esi + 0xb3c]
test eax, eax
push edi
mov dword [esp + 0xc], esi
je 0x525737
add eax, 4
jmp 0x525739
xor eax, eax
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004b55b0
fld qword [eax]
mov eax, dword [esi + 0xb3c]
add esp, 8
test eax, eax
fstp qword [esi + 0x1598]
je 0x52575e
add eax, 4
jmp 0x525760
xor eax, eax
push eax
call fcn.004b5710
add esp, 4
test eax, eax
mov dword [esi + 0x15a0], eax
je 0x525a7b
mov eax, dword [esi + 0xb3c]
test eax, eax
je 0x525786
lea edi, [eax + 4]
jmp 0x525788
xor edi, edi
lea ecx, [esp + 0x24]
call fcn.004450b0
xor eax, eax
push 0x6953fc
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov byte [esp + 0x35], al
mov byte [esp + 0x34], al
mov dword [esp + 0x3c], eax
call fcn.004a0820
lea edi, [esi + 0x1564]
lea ecx, [esp + 0x24]
cmp edi, ecx
mov dword [esp + 0x30], eax
je 0x52580c
mov eax, dword [edi]
test eax, eax
je 0x5257dc
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5257e3
mov ecx, edi
call fcn.004a11c0
mov ecx, edi
call fcn.004a0a50
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5257f6
lea ecx, [esp + 0x24]
call fcn.004a11a0
jmp 0x5257fd
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, 5
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x525828
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x525831
lea ecx, [esp + 0x24]
call fcn.004a11c0
lea ecx, [esp + 0x24]
call fcn.004a0a50
mov eax, dword [esi + 0x1568]
test eax, eax
jne 0x525846
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004b9bb0
add esp, 8
test eax, eax
jne 0x526712
mov eax, dword [esp + 0x1c]
push 0
push eax
mov dword [esi + 0x15a0], eax
mov eax, dword [esi + 0x1568]
push eax
call fcn.00487810
mov eax, dword [esi + 0x1568]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.004b9bb0
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
jne 0x526712
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
jbe 0x525a7b
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1568]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x14], 0
call fcn.004b9f60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x525c15
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1568]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.004b9bb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x525c15
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1588]
test al, 1
lea edi, [edx + 0x1584]
jne 0x525950
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x525929
mov ecx, edi
call fcn.004400e0
test eax, eax
je 0x525950
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 8]
shr eax, 1
push edx
lea ecx, [ecx + eax*4]
call fcn.00436200
mov eax, dword [edi + 4]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [edi + 4], edx
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x158c]
mov eax, dword [edi + 4]
test al, 1
jne 0x525996
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x525975
mov ecx, edi
call fcn.00527b30
test eax, eax
je 0x525996
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
shr edx, 1
mov dword [eax + edx*4], ecx
mov eax, dword [edi + 4]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [edi + 4], edx
mov eax, dword [esp + 8]
test eax, eax
je 0x5259a3
add eax, 4
jmp 0x5259a5
xor eax, eax
push 0x3a
push eax
call fcn.00488660
mov edx, eax
add esp, 8
test edx, edx
je 0x5259b9
inc edx
jmp 0x5259d1
lea ecx, [esp + 8]
call fcn.0049d350
mov eax, dword [esp + 8]
test eax, eax
je 0x5259cf
lea edx, [eax + 4]
jmp 0x5259d1
xor edx, edx
test edx, edx
mov dword [esp + 0x10], 0
je 0x5259f4
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0049d9d0
mov eax, dword [esp + 0xc]
lea edi, [eax + 0x157c]
mov eax, dword [edi + 4]
test al, 1
jne 0x525a40
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x525a19
mov ecx, edi
call fcn.004400e0
test eax, eax
je 0x525a40
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x10]
shr eax, 1
push edx
lea ecx, [ecx + eax*4]
call fcn.00436200
mov eax, dword [edi + 4]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [edi + 4], edx
lea ecx, [esp + 0x10]
call fcn.004039f0
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
mov byte [eax + 0x1578], 1
call fcn.004039f0
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x5258b0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x525a7b
push eax
call fcn.00489183
add esp, 4
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
je 0x5266e8
lea edx, [esp + 0xaec]
mov dword [esp + 0xae8], edx
mov eax, dword [esp + 0xaec]
lea edx, [esp + 0xcf4]
mov dword [esp + 0xcf0], edx
mov edx, dword [esp + 0xcf4]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0xcf4], edx
lea edx, [esp + 0xefc]
mov dword [esp + 0xef8], edx
mov edx, dword [esp + 0xefc]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0xefc], edx
lea edx, [esp + 0x1104]
mov dword [esp + 0x1100], edx
mov edx, dword [esp + 0x1104]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0x1104], edx
lea edx, [esp + 0x130c]
and eax, 0xff
mov dword [esp + 0x1308], edx
mov edx, dword [esp + 0x130c]
or eax, 0x100
and edx, 0xff
mov dword [esp + 0xaec], eax
mov al, 0x80
or edx, 0x100
mov dword [esp + 0x130c], edx
mov byte [esp + 0xaec], al
mov byte [esp + 0xcf4], al
mov byte [esp + 0xefc], al
mov byte [esp + 0x1104], al
mov byte [esp + 0x130c], al
cmp byte [esi], cl
mov byte [esp + 0xaf0], cl
mov byte [esp + 0xcf8], cl
mov byte [esp + 0xf00], cl
mov byte [esp + 0x1108], cl
mov byte [esp + 0x1310], cl
je 0x525ba7
push esi
lea ecx, [esp + 0xaec]
call fcn.004a4d20
push 0x6a38f4
lea ecx, [esp + 0xaec]
call fcn.004a4ff0
xor eax, eax
mov edi, 2
lea ecx, [esp + 0x5c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x51], al
mov byte [esp + 0x50], al
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
call fcn.004450b0
xor eax, eax
push 0x69e3e4
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], eax
mov byte [esp + 0x6d], al
mov byte [esp + 0x6c], al
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], eax
call fcn.004a0820
mov eax, dword [esp + 0xae8]
test eax, eax
je 0x525c41
add eax, 4
jmp 0x525c43
lea ecx, [esp + 8]
call fcn.004039f0
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 8], 0
je 0x525c37
push eax
call fcn.00489183
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x69e3e4
push eax
lea ecx, [esp + 0x64]
call fcn.004a0820
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x52647a
mov eax, dword [esp + 0x60]
push str.Layername_Pixelsize_Bytes_n
push eax
call fcn.00487674
mov ecx, dword [esp + 0x54]
push str._body__table_
push ecx
call fcn.00487674
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1588]
add esp, 0x10
test eax, 0xfffffffe
mov dword [esp + 0x14], 0
jbe 0x526465
mov esi, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
call fcn.004998c0
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x1584]
lea eax, [esi*4]
push 0
push str.layer:
add ecx, eax
call fcn.0049e490
test al, al
je 0x526443
xor eax, eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00525490
mov eax, dword [esp + 0x78]
test eax, eax
je 0x526443
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa0]
call fcn.004999c0
sub esp, 0x10
or eax, 0xffffffff
mov esi, esp
mov dword [esi], eax
or ecx, 0xffffffff
mov dword [esi + 4], ecx
or edx, 0xffffffff
mov dword [esi + 8], edx
or edi, 0xffffffff
lea ecx, [esp + 0xa8]
mov dword [esi + 0xc], edi
call fcn.0049c650
xor eax, eax
sub esp, 0x10
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov edi, esp
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [edi], eax
mov dword [edi + 4], ecx
or edx, 0xffffffff
lea ecx, [esp + 0x80]
mov dword [edi + 8], edx
push ecx
or esi, 0xffffffff
lea ecx, [esp + 0xac]
mov dword [edi + 0xc], esi
call fcn.0049b630
lea edx, [esp + 0xc4]
mov dword [esp + 0xc0], edx
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x2cc]
mov dword [esp + 0x2c8], edx
mov edx, dword [esp + 0x2cc]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0x2cc], edx
lea edx, [esp + 0x4d4]
mov dword [esp + 0x4d0], edx
mov edx, dword [esp + 0x4d4]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0x4d4], edx
lea edx, [esp + 0x6dc]
mov dword [esp + 0x6d8], edx
mov edx, dword [esp + 0x6dc]
and edx, 0xff
or edx, 0x100
mov dword [esp + 0x6dc], edx
lea edx, [esp + 0x8e4]
mov dword [esp + 0x8e0], edx
mov edx, dword [esp + 0x8e4]
and eax, 0xff
mov cl, 0x80
and edx, 0xff
or eax, 0x100
or edx, 0x100
mov dword [esp + 0xc4], eax
xor al, al
mov dword [esp + 0x8e4], edx
mov byte [esp + 0xc4], cl
mov byte [esp + 0x2cc], cl
mov byte [esp + 0x4d4], cl
mov byte [esp + 0x6dc], cl
mov byte [esp + 0x8e4], cl
mov ecx, dword [ebp + 8]
cmp byte [ecx], al
mov byte [esp + 0xc8], al
mov byte [esp + 0x2d0], al
mov byte [esp + 0x4d8], al
mov byte [esp + 0x6e0], al
mov byte [esp + 0x8e8], al
je 0x525eb3
mov edx, ecx
push edx
lea ecx, [esp + 0xc4]
call fcn.004a4d20
push str.layers
lea ecx, [esp + 0xc4]
call fcn.004a52c0
mov esi, dword [esp + 0x14]
xor eax, eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push str._d.jpg
push eax
call fcn.00403a60
push esi
lea ecx, [esp + 0x28]
push str.layers__d.jpg
push ecx
call fcn.00403a60
mov eax, dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x525f02
add eax, 4
jmp 0x525f04
xor eax, eax
push eax
lea ecx, [esp + 0xc4]
call fcn.004a51e0
lea ecx, [esp + 0xc0]
call fcn.004a6000
sub esp, 0xc
mov edi, esp
mov eax, 1
mov dword [edi], eax
mov ecx, 4
mov edx, 0x55
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.00538480
add esp, 0x14
push 0
lea ecx, [esp + 0x44]
call fcn.00499690
lea ecx, [esp + 0x40]
push ecx
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00525180
mov eax, dword [esp + 0x18]
test eax, eax
lea ecx, [eax + 4]
jne 0x525f7d
mov ecx, 0x6b6e10
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x1584]
lea edi, [edx*4]
add eax, edi
mov eax, dword [eax]
test eax, eax
je 0x525f9b
add eax, 4
jmp 0x525fa0
mov eax, 0x6b6e10
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
sub edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push edx
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
push ecx
push eax
push str._tr__td__s__td__td__d_x__d__td__td__d_bytes__td__td__img_src_s___td___tr_
push edx
call fcn.00487674
mov eax, dword [esi + 0x1584]
mov ecx, dword [edi + eax]
add esp, 0x1c
test ecx, ecx
mov dword [esp + 8], ecx
je 0x525ff7
mov edx, dword [ecx]
and edx, 0xff
cmp edx, 0x80
jae 0x525ff7
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x1584]
add eax, edi
mov eax, dword [eax]
test eax, eax
je 0x526151
mov edx, dword [eax]
shr edx, 8
test edx, edx
je 0x526151
test eax, eax
je 0x52601f
add eax, 4
jmp 0x526021
xor eax, eax
cmp byte [eax], 0
je 0x526151
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x6a384c
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6a384c
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0049d9d0
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x6a3848
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6a3848
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.0049d9d0
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0049f320
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x5260ea
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov edi, eax
jae 0x5260ea
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5260d9
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x5260d4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5260d9
mov eax, 0xff
test eax, eax
jne 0x5260ea
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x20], 0
je 0x52614b
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
mov edi, eax
jae 0x52614b
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x52613a
mov eax, dword [edi]
and eax, 0xff
cmp eax, 0x80
jae 0x526135
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x52613a
mov eax, 0xff
test eax, eax
jne 0x52614b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00499410
add esp, 4
mov ecx, dword [esp + 8]
jmp 0x526157
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ecx, ecx
lea eax, [ecx + 4]
jne 0x526163
mov eax, 0x6b6e10
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
sub ecx, edi
push ecx
sub edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x70]
push str._s__dx_d__d_n
push eax
call fcn.00487674
mov eax, dword [esp + 0x20]
add esp, 0x18
test eax, eax
je 0x5261ea
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5261ea
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5261d9
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5261d4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5261d9
mov eax, 0xff
test eax, eax
jne 0x5261ea
mov eax, dword [esp + 8]
push eax
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 8], 0
call fcn.004996f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x526256
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x526256
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x526245
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x526240
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x526245
mov eax, 0xff
test eax, eax
jne 0x526256
mov eax, dword [esp + 0x18]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], 0
je 0x5262b9
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5262b9
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5262a8
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5262a3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5262a8
mov eax, 0xff
test eax, eax
jne 0x5262b9
mov eax, dword [esp + 0x1c]
push eax
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x8e0]
mov dword [esp + 0x1c], 0
call fcn.004039f0
lea ecx, [esp + 0x6d8]
mov dword [esp + 0x8e0], 0
call fcn.004039f0
mov eax, dword [esp + 0x4d0]
test eax, eax
mov dword [esp + 0x6d8], 0
je 0x526350
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x526350
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x52633c
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x526337
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x52633c
mov eax, 0xff
test eax, eax
jne 0x526350
mov eax, dword [esp + 0x4d0]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x2c8]
test eax, eax
mov dword [esp + 0x4d0], 0
je 0x5263bc
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5263bc
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5263a8
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5263a3
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5263a8
mov eax, 0xff
test eax, eax
jne 0x5263bc
mov eax, dword [esp + 0x2c8]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0xc0]
test eax, eax
mov dword [esp + 0x2c8], 0
je 0x526428
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x526428
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x526414
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x52640f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x526414
mov eax, 0xff
test eax, eax
jne 0x526428
mov eax, dword [esp + 0xc0]
push eax
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xc0], 0
call fcn.00499ac0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x70]
call fcn.00499ac0
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x1588]
inc esi
shr edx, 1
cmp esi, edx
mov dword [esp + 0x14], esi
jb 0x525ca0
mov eax, dword [esp + 0x4c]
push str.__table___body_
push eax
call fcn.00487674
mov esi, dword [ebp + 8]
add esp, 8
push 0
push 1
push esi
call fcn.004cb8b0
mov eax, dword [esp + 0x68]
add esp, 0xc
test eax, eax
je 0x5264a3
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5264ac
lea ecx, [esp + 0x5c]
call fcn.004a11c0
lea ecx, [esp + 0x5c]
call fcn.004a0a50
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5264c8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5264d1
lea ecx, [esp + 0x48]
call fcn.004a11c0
lea ecx, [esp + 0x48]
call fcn.004a0a50
mov eax, dword [esp + 0x1308]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
je 0x526538
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x526538
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x526524
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x52651f
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x526524
mov eax, 0xff
test eax, eax
jne 0x526538
mov eax, dword [esp + 0x1308]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x1100]
test eax, eax
mov dword [esp + 0x1308], 0
je 0x5265a4
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5265a4
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x526590
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x52658b
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x526590
mov eax, 0xff
test eax, eax
jne 0x5265a4
mov eax, dword [esp + 0x1100]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0xef8]
test eax, eax
mov dword [esp + 0x1100], 0
je 0x526610
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x526610
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5265fc
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5265f7
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5265fc
mov eax, 0xff
test eax, eax
jne 0x526610
mov eax, dword [esp + 0xef8]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0xcf0]
test eax, eax
mov dword [esp + 0xef8], 0
je 0x52667c
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x52667c
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x526668
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x526663
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x526668
mov eax, 0xff
test eax, eax
jne 0x52667c
mov eax, dword [esp + 0xcf0]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0xae8]
test eax, eax
mov dword [esp + 0xcf0], 0
je 0x5266e8
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov edi, eax
jae 0x5266e8
push eax
call esi
and eax, 0xff
cmp eax, 0x7f
jne 0x5266d4
mov edx, dword [edi]
and edx, 0xff
cmp edx, 0x80
jae 0x5266cf
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x5266d4
mov eax, 0xff
test eax, eax
jne 0x5266e8
mov eax, dword [esp + 0xae8]
push eax
call fcn.00499410
add esp, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x114]
test eax, eax
je 0x5266fb
add eax, 4
jmp 0x5266fd
xor eax, eax
push 0x526720
push 0x52
push eax
add ecx, 0x15b0
call fcn.004b9fb0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4