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

Disassembly:
mov eax, dword [0xcea2c8]
sub esp, 0x8fc
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x528ff4
mov eax, dword [0xcf474c]
mov dword [0xced270], 0
test eax, eax
je 0x527209
mov eax, dword [0xcf50e4]
test eax, eax
jne 0x528ff4
mov eax, dword [0xcea298]
test eax, eax
jne 0x528ff4
mov eax, dword [0xced09c]
test eax, eax
jne 0x528ff4
cmp dword [0x6d69f8], 0x19
je 0x528ff4
lea edi, [ebp + 0x6db4]
mov ecx, 0x22
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0xcf4868]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x5273bd
mov eax, dword [0xcf481c]
test eax, eax
je 0x527796
mov eax, dword [0xcf508c]
test eax, eax
jne 0x528ff4
mov eax, dword [0xced10c]
lea eax, [eax + eax*4]
lea ebx, [eax - 5]
cmp ebx, eax
jge 0x5272d9
mov eax, ebx
shl eax, 4
add eax, ebx
lea ecx, [eax + eax*4]
shl ecx, 4
lea edx, [ecx + ebp + 0xd0]
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5275c7
inc esi
add edi, 0x88
cmp esi, 0xa
jl 0x527296
mov eax, dword [0xced10c]
mov ecx, dword [esp + 0x14]
inc ebx
add ecx, 0x550
lea edx, [eax + eax*4]
mov dword [esp + 0x14], ecx
cmp ebx, edx
jl 0x527290
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf4868]
mov eax, dword [0xcf95d0]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
add edx, 0x1c
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x5273bd
mov eax, dword [0xcf4868]
mov ecx, 0x1b3
mov dword [esp + 0x24], 0x1e3
mov dword [esp + 0x28], 0x1b5
lea esi, [eax + 0x1c]
mov eax, 0x1c7
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0xcea298]
mov dword [esp + 0x2c], 0x208
test eax, eax
mov dword [esp + 0x30], 0x1c9
mov dword [esp + 0x34], 0x1a3
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x1c8
mov dword [esp + 0x50], 0x21f
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 0x244
je 0x5273b6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call edi
test eax, eax
jne 0x5273b6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call edi
test eax, eax
jne 0x5273b6
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call edi
test eax, eax
je 0x5273bd
mov dword [esi + 0x10], 0
mov eax, dword [0xcf481c]
test eax, eax
je 0x527796
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov eax, dword [0xcf50cc]
mov edx, dword [esp + 0x10]
xor ebx, ebx
lea esi, [esp + 0x310]
lea eax, [eax + eax*2]
lea edi, [esp + 0x6c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
xor ecx, ecx
mov dword [esp + 0x38a], ecx
lea edx, [esp + 0x68]
mov bx, word [eax*4 + 0xcf4878]
mov dword [esp + 0x38e], ecx
mov dword [esp + 0x392], ecx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x396], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov edx, dword [eax]
xor esi, esi
mov ecx, dword [eax + 4]
mov eax, dword [0xcf50cc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov edx, dword [edx + 0x70]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
mov eax, 0x51eb851f
shl ecx, 2
mov si, word [ecx + 0xcf487a]
imul edx, esi
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, 0xffff
mov edi, edx
jne 0x527524
xor edx, edx
xor ebx, ebx
mov bx, word [esi*4 + 0xcf4878]
mov dword [esp + 0x4ba], edx
mov dword [esp + 0x4be], edx
xor eax, eax
mov ax, word [ecx + 0xcf4878]
mov dword [esp + 0x4c2], edx
mov ecx, 0x4c
lea esi, [esp + 0x440]
lea edi, [esp + 0x574]
mov byte [esp + 0x4c6], dl
mov dword [esp + 0x570], eax
lea edx, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x570]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [0xcf50cc]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*8]
xor eax, eax
mov ax, word [ecx*4 + 0xcf487a]
mov ecx, eax
mov eax, 0x51eb851f
imul ecx, dword [edx + 0x70]
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov edi, edx
mov edx, dword [0xcf50d4]
mov eax, dword [esp + 0x18]
mov ecx, dword [0xcf50d0]
mov esi, dword [esp + 0x14]
add eax, edx
add ecx, esi
lea edx, [eax + 0x1d]
push edx
lea edx, [ecx + 0x1d]
push edx
push eax
lea eax, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp ebx, 0xffff
je 0x52758e
push ebx
mov ecx, 0xced988
call fcn.0053bf30
test eax, eax
je 0x52758e
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x52758e
mov eax, dword [0xcf50e4]
test eax, eax
je 0x527604
add esi, 0x1d
cmp esi, 0x122
mov dword [esp + 0x14], esi
jl 0x5275b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
add eax, 0x1d
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x78
mov dword [esp + 0x10], eax
jl 0x5273d8
jmp 0x527796
lea eax, [ebx + ebx*4]
lea eax, [esi + eax*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ebp + ecx*8 + 0xe0]
test eax, eax
je 0x528ff4
mov dword [0xcf508c], 1
mov dword [0xcf5090], ebx
mov dword [0xcf5094], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
mov eax, 1
push ebx
mov dword [0xa4f2a8], eax
mov ecx, ebp
mov dword [ebp + 0x6dc4], ebx
mov dword [ebp + 0x6e38], 3
mov dword [ebp + 0x6dc8], eax
mov dword [ebp + 0x6dd8], edi
call fcn.0053bf30
test eax, eax
je 0x527796
xor ecx, ecx
mov edx, dword [ebp + 0x6dc4]
mov dword [esp + 0x4ba], ecx
lea esi, [esp + 0x440]
mov dword [esp + 0x4be], ecx
lea edi, [esp + 0x6c]
mov dword [esp + 0x4c2], ecx
mov dword [esp + 0x68], edx
mov byte [esp + 0x4c6], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, ebp
call fcn.00474ae0
mov edx, eax
xor ebx, ebx
mov eax, dword [edx]
mov bx, word [eax + 0x5c]
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [ebx*4 + 0xa43b20]
test eax, eax
jne 0x52777b
mov edx, dword [str..BitmapsItem_]
mov eax, dword [0x656008]
mov ecx, dword [0x65600c]
mov dword [esp + 0x310], edx
mov edx, dword [0x656010]
mov dword [esp + 0x314], eax
mov dword [esp + 0x318], ecx
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x320]
mov dword [esp + 0x31c], edx
push 0xa
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.0061d6c5
mov edi, str..wsa
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x320]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx*4 + 0xa2e594]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xa257d8
push 0
lea ecx, [esp + 0x330]
push 0
push ecx
call fcn.005a5e90
add esp, 0x28
mov dword [ebx*4 + 0xa43b20], eax
mov edx, dword [ebx*4 + 0xa43b20]
mov ecx, dword [ebx*4 + 0xa2e594]
mov eax, dword [edx]
mov dword [0xcf50e8], ecx
mov dword [0xcf50e4], eax
mov eax, dword [0xcf9324]
test eax, eax
je 0x52871a
mov eax, dword [0xcf50e4]
test eax, eax
jne 0x52871a
mov ax, word [0xd0696c]
cmp ax, 5
je 0x52871a
cmp ax, 6
je 0x52871a
cmp ax, 1
je 0x52871a
mov eax, dword [0xced10c]
lea eax, [eax + eax*4]
lea ecx, [eax - 5]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jge 0x527cab
lea eax, [ecx + ecx*4]
shl eax, 1
mov dword [esp + 0x14], eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea edx, [eax + eax*4]
shl edx, 4
xor edi, edi
lea ebx, [edx + ebp + 0xe0]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], edi
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
lea edx, [ebx - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x527b33
cmp dword [ebx], 0
je 0x527b33
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x527b33
mov eax, dword [0xa233cc]
xor edi, edi
cmp eax, edi
jne 0x527b52
cmp dword [0xd12174], edi
jne 0x527be3
mov ecx, dword [0x66aa20]
cmp ecx, edi
jge 0x528094
mov eax, 1
lea edi, [ebp + 0x6dec]
mov dword [0xcf9310], eax
mov dword [0xa4f2a8], eax
mov ecx, dword [ebx]
mov dword [ebp + 0x6e38], eax
mov dword [ebp + 0x6dc4], ecx
mov edx, dword [ebx + 4]
xor eax, eax
mov dword [ebp + 0x6dc8], edx
mov ax, word [ebx + 0x57]
lea esi, [ebx + 0x28]
mov ecx, 0x12
mov dword [ebp + 0x6dd8], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x6dc4]
push ecx
mov ecx, ebp
movsb byte es:[edi], byte [esi]
call fcn.0053bf30
test eax, eax
je 0x5285c2
mov eax, dword [ebp + 0x6dc4]
xor edx, edx
mov dword [esp + 0x4ba], edx
mov ecx, 0x4c
mov dword [esp + 0x4be], edx
lea esi, [esp + 0x440]
mov dword [esp + 0x4c2], edx
lea edi, [esp + 0x7dc]
mov byte [esp + 0x4c6], dl
mov dword [esp + 0x7d8], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7d8]
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
xor esi, esi
mov eax, dword [ecx]
mov si, word [eax + 0x5c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x54], edx
mov eax, dword [esi*4 + 0xa43b20]
test eax, eax
jne 0x527976
push esi
lea eax, [esp + 0x314]
push str..BitmapsItem_d.wsa
push eax
call fcn.006133d6
push 0
lea ecx, [esi*4 + 0xa2e594]
push 0
push ecx
push 0xa257d8
push 0
lea edx, [esp + 0x330]
push 0
push edx
call fcn.005a5e90
add esp, 0x28
mov dword [esi*4 + 0xa43b20], eax
mov eax, dword [esi*4 + 0xa43b20]
test eax, eax
je 0x527995
mov eax, dword [eax]
mov ecx, dword [esi*4 + 0xa2e594]
mov dword [0xcf50e4], eax
mov dword [0xcf50e8], ecx
mov edx, dword [ebx + 8]
lea edi, [esp + 0x6a8]
mov ecx, edx
mov dword [ebp + 0x6e3c], edx
mov eax, dword [ebx + 0xc]
lea ecx, [ecx + ecx*4]
mov dword [ebp + 0x6e40], eax
lea edx, [eax + ecx*2]
mov dword [0xced118], edx
mov eax, dword [ebp + 0x6e3c]
mov ecx, dword [ebp + 0x6e40]
lea eax, [eax + eax*4]
shl eax, 1
add ecx, eax
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [0x647e90]
mov esi, dword [ebp + edx*8 + 0xd0]
sub ecx, esi
lea esi, [esp + 0x570]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x6e40]
add ecx, eax
mov eax, dword [0x647e94]
mov edx, ecx
shl edx, 4
add edx, ecx
mov ecx, dword [ebp + edx*8 + 0xd4]
xor edx, edx
sub eax, ecx
mov cx, word [ebp + 0x6e3c]
imul cx, cx, 0xa
add cx, word [ebp + 0x6e40]
mov dword [esp + 0x5ea], edx
mov dword [esp + 0x5ee], edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x6dc4]
mov word [ebp + 0x6dec], cx
mov dword [esp + 0x5f2], edx
mov ecx, 0x4c
mov byte [esp + 0x5f6], dl
mov dword [esp + 0x6a4], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x6a4]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x108]
cmp ecx, 1
mov dword [esp + 0x54], edx
jle 0x527b33
mov eax, dword [ebp + 0x6dc4]
mov ecx, dword [0xced118]
xor edx, edx
mov dword [0xced100], eax
mov dword [esp + 0xe2], edx
mov dword [0xced104], ecx
mov eax, dword [ebp + 0x6dc4]
mov dword [esp + 0xe6], edx
mov dword [esp + 0xea], edx
mov ecx, 0x4c
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], dl
mov dword [esp + 0x1dc], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x108]
cmp ecx, 1
mov dword [esp + 0x54], edx
jle 0x527b33
mov eax, dword [ebp + 0x6e3c]
mov ecx, dword [ebp + 0x6e40]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov edx, eax
shl edx, 4
add edx, eax
cmp dword [ebp + edx*8 + 0xe4], 1
jne 0x527b33
mov dword [0xced0f8], 0
mov eax, dword [esp + 0x18]
add ebx, 0x88
inc eax
cmp eax, 0xa
mov dword [esp + 0x18], eax
jl 0x527812
xor edi, edi
jmp 0x527c75
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add eax, esi
mov ecx, eax
shl ecx, 4
add ecx, eax
mov edx, dword [ebp + ecx*8 + 0xe0]
mov ecx, 0xcfb148
push edx
call fcn.00560350
and eax, 0xffff
mov ecx, 0xcfb148
push eax
call fcn.00560360
test al, al
je 0x527bcb
mov ecx, 0xcfb148
mov byte [esp + 0x20], 1
call fcn.00560320
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 6
lea eax, [eax + eax*4]
push edx
push 0xe00
mov dword [0xa233cc], edi
lea ecx, [esi + eax*2]
mov word [esp + 0x28], cx
call fcn.004ac410
add esp, 0xc
jmp 0x527c75
push 0x66b170
call fcn.004cbc30
add esp, 4
mov dword [0xa233cc], edi
jmp 0x527c75
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, eax
push edi
push ecx
mov ecx, 0xd12158
call fcn.0058cf30
mov edx, dword [0x62d4c4]
add edx, 0x11
push edx
call fcn.00575a50
mov eax, dword [0xce8ee4]
add esp, 4
cmp eax, 0x3e8
je 0x527c67
cmp dword [0xa233a4], edi
je 0x527c75
push edi
mov ecx, 0xd12158
call fcn.0058d4d0
cmp dword [0xcf9324], edi
je 0x527c67
mov eax, dword [0xcf9378]
mov dword [0xcf9324], edi
cmp eax, edi
je 0x527c55
push edi
push edi
push 0xcf937c
push 0xcf9378
call fcn.005a6840
add esp, 0x10
mov eax, dword [0xd0af88]
cmp eax, edi
je 0x527c67
push eax
call fcn.004e6ba0
add esp, 4
cmp dword [0xa233a4], edi
je 0x527c75
mov dword [0xa233a4], edi
mov ebx, dword [esp + 0x10]
mov eax, dword [0xced10c]
mov edx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*4]
add ebx, 0x550
add edx, 0xa
cmp ecx, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], edx
jl 0x52780e
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], esi
lea ebx, [ebp + 0x5090]
mov edx, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
lea eax, [ebx - 0x10]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x52807e
cmp dword [0xcecc84], edi
jne 0x528ff4
mov eax, dword [ebx]
cmp eax, edi
je 0x527d03
cmp dword [0xa233cc], edi
jne 0x5285db
cmp dword [0xd12174], edi
jne 0x5289fe
mov ecx, dword [0x66aa20]
cmp ecx, edi
jge 0x528a97
cmp eax, 0x64
je 0x528ff4
cmp eax, 0x65
je 0x528ff4
cmp eax, 0x66
je 0x528ff4
cmp eax, 0x67
je 0x528ff4
cmp eax, 0x68
je 0x528ff4
cmp dword [0xcf9310], edi
jne 0x527d58
mov edx, dword [0x62d4c4]
add edx, 0x38
push edx
call fcn.00575a50
add esp, 4
mov eax, 1
lea esi, [ebx + 0x18]
mov dword [0xcf9310], eax
mov dword [0xa4f2a8], eax
mov ecx, dword [ebx]
mov dword [ebp + 0x6e38], eax
mov dword [ebp + 0x6dc4], ecx
mov edx, dword [ebx + 4]
xor eax, eax
mov dword [ebp + 0x6dc8], edx
mov ax, word [ebx + 0x47]
mov ecx, 0x12
mov dword [ebp + 0x6dd8], eax
lea eax, [ebp + 0x6dec]
mov edi, eax
mov edx, dword [ebp + 0x6dc4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
push edx
add ecx, 0xc8
movsb byte es:[edi], byte [esi]
mov word [eax], cx
mov ecx, ebp
call fcn.0053bf30
test eax, eax
je 0x528078
mov ecx, dword [ebp + 0x6dc4]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe6], eax
mov ecx, 0x4c
mov dword [esp + 0xea], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], al
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ecx*4 + 0xa43b20]
test eax, eax
jne 0x527f1b
mov eax, dword [str..BitmapsItem_]
mov ecx, dword [0x656008]
mov edx, dword [0x65600c]
mov dword [esp + 0x310], eax
mov eax, dword [0x656010]
mov dword [esp + 0x314], ecx
mov dword [esp + 0x31c], eax
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x320]
mov dword [esp + 0x318], edx
mov edx, dword [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x19c]
push 0xa
push ecx
push edx
call fcn.0061d6c5
mov edi, str..wsa
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x320]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x324]
lea eax, [esi*4 + 0xa2e594]
push eax
push 0xa257d8
push 0
push 0
push ecx
call fcn.005a5e90
add esp, 0x28
mov dword [esi*4 + 0xa43b20], eax
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x570]
lea edi, [esp + 0x6a8]
mov edx, dword [eax*4 + 0xa43b20]
mov ecx, dword [edx]
mov edx, dword [eax*4 + 0xa2e594]
mov dword [0xcf50e8], edx
mov dword [0xcf50e4], ecx
mov eax, dword [ebx + 4]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x5ea], edx
mov dword [ebp + 0x6dc8], eax
mov cx, word [ebx + 0x47]
mov eax, dword [ebp + 0x6dc4]
mov dword [esp + 0x5ee], edx
mov dword [ebp + 0x6dd8], ecx
mov dword [esp + 0x5f2], edx
mov ecx, 0x4c
mov byte [esp + 0x5f6], dl
mov dword [esp + 0x6a4], eax
lea edx, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x6a4]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
lea esi, [esp + 0x440]
lea edi, [esp + 0x7dc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x74]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 8]
sub eax, edx
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [ebx - 0x10]
mov eax, dword [0x647e90]
sub edx, ecx
mov ecx, dword [ebp + 0x6dc4]
add edx, eax
xor eax, eax
mov dword [esp + 0x7d8], ecx
mov dword [esp + 0x4ba], eax
mov dword [ebp + 0x10], edx
mov dword [esp + 0x4be], eax
mov ecx, 0x4c
mov dword [esp + 0x4c2], eax
lea edx, [esp + 0x7d8]
mov byte [esp + 0x4c6], al
lea eax, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xc]
sub eax, edx
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [ebx - 0xc]
mov eax, dword [0x647e94]
sub edx, ecx
add edx, eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x14], edx
mov dword [ebx], 0
mov dword [ebx + 4], 0
or ecx, 0xffffffff
mov dword [ebp + 0x6e44], eax
mov dword [ebp + 0x6e3c], ecx
mov dword [ebp + 0x6e40], ecx
add eax, 0xc8
mov dword [0xced118], eax
mov esi, dword [esp + 0x10]
xor edi, edi
inc esi
add ebx, 0x74
cmp esi, 7
mov dword [esp + 0x10], esi
jl 0x527cb9
jmp 0x528658
cmp dword [0xa233a8], edi
je 0x5280a2
mov dword [0xa233a8], edi
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x1e0]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x18]
lea eax, [eax + edx*2]
mov edx, eax
shl edx, 4
add edx, eax
mov ebx, dword [ebp + edx*8 + 0xe0]
lea eax, [ebp + edx*8]
mov dword [esp + 0x48], eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
mov dword [esp + 0x1dc], ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ecx, 0xa
lea esi, [edx + edx*4]
cdq
idiv ecx
xor ecx, ecx
mov dword [esp + 0xe2], ecx
mov dword [esp + 0xe6], ecx
mov dword [esp + 0xea], ecx
mov byte [esp + 0xee], cl
mov ecx, 0x4c
lea eax, [edx + esi*2]
lea esi, [esp + 0x68]
mov edx, eax
shl edx, 4
add edx, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + edx*8 + 0xe0]
lea edx, [esp + 0x1dc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp word [eax + 0xb4], 0xa
mov dword [esp + 0x38], edx
jb 0x5281c7
mov ecx, 0xa
mov esi, 0x66b144
lea edi, [esp + 0x1b0]
mov eax, dword [0xa4f274]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test eax, eax
movsb byte es:[edi], byte [esi]
je 0x52818a
lea eax, [esp + 0x1b0]
push 0
push eax
call fcn.00586e90
add esp, 8
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
push ecx
lea ecx, [esp + 0x1c0]
push ecx
call fcn.004cbc90
add esp, 0x14
mov dword [0x66aa20], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
push ebx
mov ecx, ebp
call fcn.0053bf30
test eax, eax
je 0x52850b
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
call fcn.0053bf30
test eax, eax
je 0x52850b
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x84]
cmp ecx, 1
mov dword [esp + 0x38], edx
jl 0x52850b
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x84]
cmp ecx, 4
mov dword [esp + 0x38], edx
jg 0x52850b
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, dword [eax]
lea esi, [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x6a4], ecx
mov dword [esp + 0xe6], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xea], eax
mov ecx, 0x4c
lea edi, [esp + 0x6a8]
mov byte [esp + 0xee], al
lea edx, [esp + 0x6a4]
lea eax, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], edx
mov dx, word [ecx + 0xb6]
cmp dx, word [eax + 0xb6]
je 0x5284d5
cmp ebx, 0xa30
je 0x5284d5
cmp ebx, 0xc58
je 0x5284d5
mov eax, dword [0xa4f274]
test eax, eax
je 0x528415
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe6], eax
mov ecx, 0x4c
mov dword [esp + 0xea], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], al
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0xb6]
mov dword [esp + 0x38], edx
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
push edx
push 0x66b11c
jmp 0x528488
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe6], eax
mov ecx, 0x4c
mov dword [esp + 0xea], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], al
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0xb6]
mov dword [esp + 0x38], edx
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
push edx
push 0x66b0f4
lea edx, [esp + 0x318]
push edx
call fcn.006133d6
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push 0
push 0
dec ecx
push 0
lea eax, [esp + 0x31c]
push ecx
push eax
call fcn.004cbc90
add esp, 0x14
mov dword [0x66aa20], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
mov cx, word [0x66aa20]
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x48]
mov ax, word [ecx + 0xe8]
imul ax, ax, 0xa
add ax, word [ecx + 0xec]
mov ecx, dword [esp + 0x1c]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov word [edx + 4], ax
jmp 0x528ed0
xor edx, edx
mov ecx, 0x4c
mov dword [esp + 0xe2], edx
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], edx
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], edx
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], dl
lea eax, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
mov dword [0x66aa20], 0xffffffff
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
add eax, 0x10
mov ecx, dword [edx + 4]
push eax
lea edx, [esp + 0x314]
push 0x66b0dc
push edx
mov dword [esp + 0x44], ecx
call fcn.006133d6
mov eax, dword [0xa4f274]
add esp, 0xc
test eax, eax
jne 0x52859f
lea eax, [esp + 0x310]
push 0
push eax
call fcn.00586da0
add esp, 8
push 0
push 0
push 0
lea ecx, [esp + 0x31c]
push 0
push ecx
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
lea eax, [ebp + 0x6db4]
mov ecx, ebp
push eax
call fcn.0052dae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
lea eax, [esi*8]
xor edx, edx
sub eax, esi
lea ecx, [esi + eax*4]
mov dx, word [ebp + ecx*4 + 0x50aa]
mov ecx, 0xcfb148
push edx
call fcn.00560350
and eax, 0xffff
mov ecx, 0xcfb148
push eax
call fcn.00560360
test al, al
je 0x528645
mov ecx, 0xcfb148
mov byte [esp + 0x20], 0
call fcn.00560320
mov word [esp + 0x1e], ax
lea eax, [esp + 0x1c]
push 6
push eax
push 0xe00
mov word [esp + 0x28], si
mov dword [0xa233cc], edi
call fcn.004ac410
add esp, 0xc
jmp 0x528652
push 0x66b170
call fcn.004cbc30
add esp, 4
mov dword [0xa233cc], edi
cmp dword [0xd12174], edi
je 0x5286de
cmp dword [0xce8ee4], 0x3e8
je 0x5286de
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push ecx
push eax
push 0xcf9314
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x5286de
cmp dword [0xa233a4], edi
je 0x528696
mov dword [0xa233a4], edi
push edi
mov ecx, 0xd12158
call fcn.0058d4d0
cmp dword [0xcf9324], edi
je 0x5286de
mov eax, dword [0xcf9378]
mov dword [0xcf9324], edi
cmp eax, edi
je 0x5286cc
push edi
push edi
push 0xcf937c
push 0xcf9378
call fcn.005a6840
add esp, 0x10
mov eax, dword [0xd0af88]
cmp eax, edi
je 0x5286de
push eax
call fcn.004e6ba0
add esp, 4
cmp dword [0x66aa20], edi
jl 0x52871a
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push ecx
push eax
push 0xcf9314
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x52871a
cmp dword [0xa233a8], edi
je 0x528710
mov dword [0xa233a8], edi
mov dword [0x66aa20], 0xffffffff
push 0x300
push 0x320
push 0x26a
push 0
push 0xce8f20
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0xcf50e4]
test eax, eax
jne 0x528ff4
mov eax, dword [0xcf95d4]
mov ecx, dword [0xcf95d0]
push eax
push ecx
push 0xce8f20
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x528ff4
mov eax, dword [ebp + 0x53ac]
lea esi, [eax*8]
lea edx, [eax*8 + 8]
cmp esi, edx
mov dword [esp + 0x10], esi
jge 0x528ff4
lea eax, [esi + esi*2]
lea eax, [eax + eax*8]
lea ebx, [ebp + eax*4 + 0x53f0]
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x528fd7
call fcn.00554850
test eax, eax
je 0x528fd7
mov dword [0xced270], 3
mov dword [0xa4f2a8], 1
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x6dc4], eax
mov eax, dword [ebx + 0x1c]
cmp eax, 1
mov dword [ebp + 0x6e38], eax
jne 0x528fa3
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov dword [ebp + 0x6dc8], ecx
mov dx, word [ebx + 0x4f]
lea eax, [ebp + 0x6dec]
lea esi, [ebx + 0x20]
mov ecx, 0x12
mov edi, eax
mov dword [ebp + 0x6dd8], edx
mov edx, dword [ebp + 0x6dc4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
push edx
add ecx, 0x12c
movsb byte es:[edi], byte [esi]
mov word [eax], cx
mov ecx, ebp
call fcn.0053bf30
test eax, eax
je 0x528ff4
mov ecx, dword [ebp + 0x6dc4]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe6], eax
mov ecx, 0x4c
mov dword [esp + 0xea], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], al
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ecx*4 + 0xa43b20]
test eax, eax
jne 0x52898f
mov eax, dword [str..BitmapsItem_]
mov ecx, dword [0x656008]
mov edx, dword [0x65600c]
mov dword [esp + 0x310], eax
mov eax, dword [0x656010]
mov dword [esp + 0x314], ecx
mov dword [esp + 0x31c], eax
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x320]
mov dword [esp + 0x318], edx
mov edx, dword [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x19c]
push 0xa
push ecx
push edx
call fcn.0061d6c5
mov edi, str..wsa
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x320]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x324]
lea eax, [esi*4 + 0xa2e594]
push eax
push 0xa257d8
push 0
push 0
push ecx
call fcn.005a5e90
add esp, 0x28
mov dword [esi*4 + 0xa43b20], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax*4 + 0xa43b20]
mov ecx, dword [edx]
mov edx, dword [eax*4 + 0xa2e594]
mov eax, dword [0x647e90]
mov dword [0xcf50e4], ecx
mov dword [0xcf50e8], edx
mov ecx, dword [ebx]
sub eax, ecx
mov dword [ebp + 0x10], eax
mov ecx, dword [0x647e94]
mov eax, dword [ebx + 4]
sub ecx, eax
xor eax, eax
mov dword [ebp + 0x14], ecx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, 0xfffffffe
mov dword [ebp + 0x6e48], eax
add eax, 0x12c
mov dword [ebp + 0x6e3c], ecx
mov dword [ebp + 0x6e40], ecx
mov dword [0xced118], eax
jmp 0x528fd3
push esi
push 0xff
mov ecx, 0xd12158
call fcn.0058cf30
mov ecx, dword [0x62d4c4]
add ecx, 0x11
push ecx
call fcn.00575a50
mov eax, dword [0xce8ee4]
add esp, 4
cmp eax, 0x3e8
je 0x528a80
cmp dword [0xa233a4], edi
je 0x528658
push edi
mov ecx, 0xd12158
call fcn.0058d4d0
cmp dword [0xcf9324], edi
je 0x528a80
mov eax, dword [0xcf9378]
mov dword [0xcf9324], edi
cmp eax, edi
je 0x528a6e
push edi
push edi
push 0xcf937c
push 0xcf9378
call fcn.005a6840
add esp, 0x10
mov eax, dword [0xd0af88]
cmp eax, edi
je 0x528a80
push eax
call fcn.004e6ba0
add esp, 4
cmp dword [0xa233a4], edi
je 0x528658
mov dword [0xa233a4], edi
jmp 0x528658
cmp dword [0xa233a8], edi
je 0x528aa5
mov dword [0xa233a8], edi
lea edx, [esi*8]
sub edx, esi
lea eax, [esi + edx*4]
mov ebx, dword [ebp + eax*4 + 0x5090]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ecx, 0xa
lea esi, [edx + edx*4]
cdq
idiv ecx
mov ecx, ebp
lea eax, [edx + esi*2]
mov edx, eax
shl edx, 4
add edx, eax
mov esi, dword [ebp + edx*8 + 0xe0]
mov dword [esp + 0x18], esi
call fcn.0053bf30
test eax, eax
je 0x528eec
push esi
mov ecx, ebp
call fcn.0053bf30
test eax, eax
je 0x528eec
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x84]
cmp ecx, 1
mov dword [esp + 0x38], edx
jl 0x528eec
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x84]
cmp ecx, 4
mov dword [esp + 0x38], edx
jg 0x528eec
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp word [eax + 0xb4], 0xa
mov dword [esp + 0x38], edx
jb 0x528c8b
mov ecx, 0xa
mov esi, 0x66b0b0
lea edi, [esp + 0x1b0]
mov eax, dword [0xa4f274]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test eax, eax
movsb byte es:[edi], byte [esi]
je 0x528c66
lea eax, [esp + 0x1b0]
push 0
push eax
call fcn.00586e90
add esp, 8
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
push ecx
lea ecx, [esp + 0x1c0]
push ecx
jmp 0x528e8e
xor edx, edx
mov ecx, 0x4c
mov dword [esp + 0xe2], edx
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], edx
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], edx
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], dl
lea eax, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
call fcn.00474ae0
mov edx, dword [eax]
xor ecx, ecx
mov dword [esp + 0xe2], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0xe6], ecx
lea esi, [esp + 0x68]
mov dword [esp + 0xea], ecx
lea edi, [esp + 0x6a8]
mov byte [esp + 0xee], cl
mov ecx, 0x4c
mov dword [esp + 0x6a4], edx
mov dword [esp + 0x20], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x6a4]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, ebp
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov cx, word [edx + 0xb6]
cmp cx, word [eax + 0xb6]
je 0x528eab
cmp ebx, 0xa30
je 0x528eab
cmp ebx, 0xc58
je 0x528eab
mov eax, dword [0xa4f274]
test eax, eax
je 0x528deb
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0xe2], edx
mov ecx, 0x4c
mov dword [esp + 0xe6], edx
lea esi, [esp + 0x68]
mov dword [esp + 0xea], edx
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], dl
mov dword [esp + 0x1dc], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0xb6]
mov dword [esp + 0x38], edx
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
push edx
push 0x66b11c
jmp 0x528e5e
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0xe2], eax
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0xe6], eax
mov ecx, 0x4c
mov dword [esp + 0xea], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x1e0]
mov byte [esp + 0xee], al
lea edx, [esp + 0x1dc]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov cx, word [eax + 0xb6]
mov dword [esp + 0x38], edx
mov eax, ecx
mov ecx, 0xa
cdq
idiv ecx
push edx
push 0x66b0f4
lea edx, [esp + 0x318]
push edx
call fcn.006133d6
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push 0
push 0
dec ecx
push 0
lea eax, [esp + 0x31c]
push ecx
push eax
call fcn.004cbc90
add esp, 0x14
mov dword [0x66aa20], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
mov cx, word [0x66aa20]
mov edx, dword [esp + 0x10]
sub esp, 8
mov word [esp + 0x24], cx
lea eax, [edx + 0xc8]
mov edx, dword [esp + 0x24]
mov ecx, esp
mov dword [ecx], edx
mov word [ecx + 4], ax
mov ecx, ebp
call fcn.00543b80
mov dword [0x66aa20], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x68]
mov dword [esp + 0xe6], eax
lea edi, [esp + 0x1e0]
mov dword [esp + 0xea], eax
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0xee], al
lea edx, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1dc]
mov dword [0x66aa20], 0xffffffff
push ecx
push edx
mov ecx, ebp
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
add eax, 0x10
mov edx, dword [ecx + 4]
push eax
lea eax, [esp + 0x314]
push 0x66b0dc
push eax
mov dword [esp + 0x44], edx
call fcn.006133d6
mov eax, dword [0xa4f274]
add esp, 0xc
test eax, eax
jne 0x528f80
lea ecx, [esp + 0x310]
push 0
push ecx
call fcn.00586da0
add esp, 8
push 0
push 0
push 0
lea edx, [esp + 0x31c]
push 0
push edx
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret
cmp eax, 2
jne 0x528fd7
lea eax, [ebp + 0x6dec]
lea esi, [ebx + 0x20]
mov ecx, 0x12
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [ecx + 0x12c]
mov ecx, 0xcf65c0
movsb byte es:[edi], byte [esi]
mov word [eax], dx
call fcn.00548d70
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x53ac]
inc esi
add ebx, 0x6c
mov dword [esp + 0x10], esi
lea ecx, [eax*8 + 8]
cmp esi, ecx
jl 0x528790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret