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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d713e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
push ebx
push ebp
mov ebp, ecx
push esi
push edi
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fld st(0)
fmul qword [0x4d8aa8]
call fcn.004c836c
fild dword [ebp + 0xd8]
mov dword [esp + 0x34], eax
fmul dword [ebp + 0xb4]
fst dword [esp + 0x30]
fmul qword [0x4d8aa8]
call fcn.004c836c
fmul qword [0x4d8910]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.004c836c
fld dword [esp + 0x30]
fmul qword [0x4d8910]
mov dword [esp + 0x50], eax
call fcn.004c836c
mov dword [esp + 0x54], eax
mov al, byte [ebp + 0x99]
cmp al, 3
jne 0x447292
mov cl, byte [ebp + 0x9c]
test cl, cl
je 0x447265
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
mov al, byte [ebp + 0x9e]
test al, al
je 0x447279
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
test cl, cl
jne 0x447281
test al, al
je 0x447292
mov eax, dword [ebp + 0xe4]
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x30]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x447fa8
cmp ebx, ecx
jge 0x4472ba
test ebx, ebx
jl 0x4472ba
mov eax, dword [eax + 4]
mov edi, dword [eax + ebx*4]
jmp 0x4472bc
xor edi, edi
mov ecx, edi
mov dword [esp + 0x70], edi
call fcn.00456470
mov esi, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
test esi, esi
mov dword [esp + 0x80], eax
jg 0x4472dd
mov esi, 1
test eax, eax
jg 0x4472ef
mov ecx, edi
call fcn.00456650
mov dword [esp + 0x80], eax
lea ecx, [esi - 1]
cmp ecx, eax
mov dword [esp + 0x44], ecx
jge 0x447f97
mov eax, dword [ebp + 0x78]
xor edi, edi
cmp eax, edi
jne 0x447fa8
cmp dword [esp + 0x2c], edi
jne 0x4475b4
push 0x1c
call fcn.004c7e90
mov esi, eax
add esp, 4
mov dword [esp + 0x74], esi
cmp esi, edi
mov dword [esp + 0x358], edi
je 0x447362
push 0x80
mov dword [esi], 0x4d8a98
call fcn.004c7e90
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x1f
mov dword [esi + 0x14], pe_nt_image_headers32
mov dword [esi + 0x10], 1
mov ebx, esi
jmp 0x447364
xor ebx, ebx
cmp ebx, edi
mov dword [esp + 0x358], 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x447411
mov eax, dword [ebp + 0xf4]
mov edx, dword [ebp + 0xf0]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4473f5
add eax, dword [ebp + 0xfc]
lea edx, [eax*4 + 4]
push edx
call fcn.004c7e90
mov ecx, dword [ebp + 0xf4]
mov esi, dword [ebp + 0xec]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xec]
push eax
call fcn.004c7e56
mov edx, dword [ebp + 0xfc]
mov eax, dword [ebp + 0xf4]
mov ecx, dword [esp + 0x1c]
add esp, 8
add eax, edx
mov dword [ebp + 0xec], ecx
mov dword [ebp + 0xf4], eax
mov eax, dword [ebp + 0xf0]
mov ecx, dword [ebp + 0xec]
mov dword [ecx + eax*4], ebx
mov eax, dword [ebp + 0xf0]
inc eax
mov dword [ebp + 0xf0], eax
mov edx, dword [ebp + 0xc8]
mov eax, dword [ebp + 0xf0]
inc edx
cmp eax, edx
jne 0x447435
mov eax, dword [ebp + 0x60]
push 0
push 0
push 0x404
push eax
call dword [sym.imp.user32.dll_PostMessageA]
fild dword [ebp + 0xd4]
fld dword [ebp + 0x8c]
fadd dword [ebp + 0x88]
fmul st(1)
call fcn.004c836c
fild dword [ebp + 0xd8]
mov esi, dword [ebp + 0xcc]
sub esi, eax
fstp dword [esp + 0x14]
fld dword [ebp + 0x94]
fadd dword [ebp + 0x90]
mov dword [esp + 0x3c], esi
fmul dword [esp + 0x14]
call fcn.004c836c
mov edi, dword [ebp + 0xd0]
fmul dword [ebp + 0x88]
sub edi, eax
mov dword [esp + 0x40], edi
call fcn.004c836c
fld dword [esp + 0x14]
fmul dword [ebp + 0x90]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.004c836c
lea ecx, [ebx + esi]
lea edx, [eax + edi]
mov dword [esp + 0x24], ecx
mov cl, byte [ebp + 0x99]
cmp cl, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jne 0x4475ac
mov eax, dword [esp + 0x50]
mov ecx, 1
add eax, esi
cdq
idiv dword [esp + 0x34]
cmp eax, 1
jl 0x4474dd
mov ecx, eax
movsx eax, byte [ebp + 0x98]
cdq
mov ebx, 3
idiv ebx
sub edx, 0
je 0x447524
dec edx
je 0x44750a
dec edx
jne 0x44752c
imul ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
sub esi, ecx
add esi, eax
mov dword [esp + 0x58], esi
jmp 0x44752c
imul ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov eax, esi
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
jmp 0x44752c
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x38]
mov ecx, 1
lea eax, [edi + ebx]
cdq
idiv esi
cmp eax, 1
jl 0x447546
mov ecx, eax
movsx edx, byte [ebp + 0x98]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
sub edx, 0
je 0x447587
dec edx
je 0x447573
dec edx
jne 0x44758f
imul ecx, esi
sub edi, ecx
add edi, ebx
mov dword [esp + 0x5c], edi
jmp 0x44758f
imul ecx, esi
mov eax, edi
sub eax, ecx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x5c], eax
jmp 0x44758f
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
push 0x48
call fcn.004c7e90
add esp, 4
test eax, eax
je 0x4475d9
xor edx, edx
mov ebx, eax
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
jmp 0x4475dd
xor ebx, ebx
xor edx, edx
mov ecx, dword [ebp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 8]
jge 0x4475f3
cmp eax, edx
jl 0x4475f3
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov esi, dword [esp + 0x44]
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov al, byte [ebp + 0x99]
cmp al, 3
je 0x447a72
mov al, byte [0x4fbe40]
mov ecx, 0x4a
mov byte [esp + 0xd4], al
xor eax, eax
lea edi, [esp + 0xd5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp + 0x9e]
test al, al
je 0x44770c
mov al, byte [ebp + 0x9f]
test al, al
je 0x447685
lea ecx, [esp + 0xd4]
push ecx
mov ecx, edx
call fcn.00454cb0
push eax
call fcn.00442f10
mov al, byte [ebp + 0x9c]
add esp, 8
test al, al
je 0x447672
lea edx, [esp + 0xd4]
push 0x4f023c
push edx
jmp 0x44767f
lea eax, [esp + 0xd4]
push 0x4ee5f0
push eax
call dword [sym.imp.kernel32.dll_lstrcat]
mov al, byte [ebp + 0x9c]
test al, al
jne 0x4476a1
mov cl, byte [ebp + 0x9f]
mov dword [esp + 0x14], 0
test cl, cl
je 0x4476a9
mov dword [esp + 0x14], 1
test al, al
je 0x4476b8
mov ecx, dword [ebx]
call fcn.00454cb0
mov edi, eax
jmp 0x4476ba
xor edi, edi
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [ebx]
push 1
push esi
call fcn.00454950
mov ecx, dword [ebx]
push eax
push esi
call fcn.004548f0
mov ecx, dword [ebx]
push eax
push esi
call fcn.00454890
mov ecx, dword [ebx]
push eax
call fcn.00454480
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
push eax
lea edx, [esp + 0xf0]
push edi
push edx
call esi
lea eax, [esp + eax + 0xf4]
push eax
call fcn.00456950
add esp, 0x24
jmp 0x4477bc
mov al, byte [ebp + 0x9c]
test al, al
jne 0x447724
mov al, byte [ebp + 0x9f]
test al, al
je 0x4477b6
mov ecx, edx
call fcn.00454cb0
test eax, eax
je 0x4477b6
mov al, byte [ebp + 0x9f]
test al, al
je 0x447755
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [ebx]
call fcn.00454cb0
push eax
call fcn.00442f10
add esp, 8
mov al, byte [ebp + 0x9c]
test al, al
je 0x4477b6
mov al, byte [ebp + 0x9f]
test al, al
je 0x44777c
lea edx, [esp + 0xd4]
push 0x4ee610
push edx
call dword [sym.imp.kernel32.dll_lstrcat]
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
lea eax, [esp + 0xd4]
push eax
call esi
mov ecx, 0x12c
lea edx, [esp + 0xd4]
sub ecx, eax
push ecx
push edx
call esi
mov ecx, dword [ebx]
lea eax, [esp + eax + 0xd8]
push eax
call fcn.00454cb0
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
jmp 0x4477bc
mov esi, dword [sym.imp.kernel32.dll_lstrlen]
lea ecx, [esp + 0xd4]
test ecx, ecx
je 0x447928
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4477f4
inc eax
lea edx, [esp + 0xd4]
push eax
push 0x4f0234
push edx
call esi
lea eax, [esp + eax + 0xdc]
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0xb4], edx
mov dword [esp + 0x94], edx
mov edx, dword [ebp + 0x68]
push ecx
push edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0x94], eax
mov dword [esp + 0xa0], esi
call dword [sym.imp.gdi32.dll_SelectObject]
mov edx, dword [ebp + 0x68]
mov edi, dword [sym.imp.user32.dll_DrawTextA]
lea eax, [esp + 0xac]
push 0xc01
push eax
lea ecx, [esp + 0xdc]
push 0xffffffffffffffff
push ecx
push edx
call edi
mov edx, dword [ebp + 0x68]
lea eax, [esp + 0x8c]
push 0xc11
push eax
lea ecx, [esp + 0xdc]
push 0xffffffffffffffff
push ecx
push edx
call edi
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x98]
cmp eax, ecx
mov dword [ebx + 0x40], 0x8810
je 0x4478c9
mov edx, dword [esp + 0x8c]
lea eax, [ebx + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x4478f7
mov esi, dword [esp + 0xac]
lea edx, [ebx + 0x18]
mov dword [ebx + 0x40], 0x8811
mov ecx, dword [esp + 0x24]
mov dword [edx], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0xb4], ecx
mov dword [edx + 4], esi
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x24], esi
call fcn.00442c90
add esp, 4
mov dword [ebx + 0x38], eax
jmp 0x44792e
mov edi, dword [sym.imp.user32.dll_DrawTextA]
mov al, byte [ebp + 0x9d]
test al, al
je 0x447a72
mov ecx, dword [ebx]
call fcn.00454cb0
test eax, eax
je 0x447a72
mov ecx, dword [ebx]
push 0
call fcn.00454cb0
push eax
call fcn.00443ef0
mov esi, eax
add esp, 8
test esi, esi
je 0x447a72
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xa0], ecx
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xa8], edx
mov edx, dword [ebp + 0x68]
mov dword [esp + 0xbc], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
push ecx
push edx
mov dword [esp + 0xac], eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [ebp + 0x68]
lea eax, [esp + 0xbc]
push 0xc01
push eax
push 0xffffffffffffffff
push esi
push ecx
call edi
lea edx, [esp + 0x9c]
push 0xc11
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x68]
push edx
push 0xffffffffffffffff
push esi
push eax
call edi
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xa8]
cmp ecx, edx
mov dword [ebx + 0x44], 0x8810
je 0x447a30
mov edi, dword [esp + 0x9c]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x28], edi
mov edi, dword [esp + 0xa0]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0xa4]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
jmp 0x447a5b
mov edi, dword [esp + 0xbc]
lea edx, [ebx + 0x28]
mov dword [ebx + 0x44], 0x8811
mov eax, dword [esp + 0x24]
mov dword [edx], edi
mov edi, dword [esp + 0xc0]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
sub edx, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], edx
mov dword [ebx + 0x3c], esi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x447a80
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x447a9f
mov eax, dword [ebp + 0xe4]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
sub edx, eax
add ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ecx
lea esi, [ebp + 0x3c]
push esi
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
jne 0x447b1a
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 4]
mov dword [esp + 0x68], ecx
xor ecx, ecx
test eax, eax
setle cl
dec ecx
mov dword [esp + 0x6c], edx
and ecx, eax
xor edx, edx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
test edi, edi
setle dl
dec edx
push esi
and edx, edi
mov dword [esp + 0x68], edx
mov ecx, dword [ebx]
call fcn.00454890
cmp dword [esp + 0x68], eax
jl 0x447afa
mov ecx, dword [ebx]
push esi
call fcn.00454890
mov dword [esp + 0x68], eax
mov ecx, dword [ebx]
push esi
call fcn.004548f0
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x447b47
mov ecx, dword [ebx]
push esi
call fcn.004548f0
mov ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x447b47
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x70]
push esi
mov ecx, edi
call fcn.004548f0
push eax
push esi
mov ecx, edi
call fcn.00454890
push eax
push 0
lea eax, [esp + 0x6c]
push 0
push eax
call dword [sym.imp.user32.dll_SetRect]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub edi, eax
mov al, byte [ebp + 0x99]
sub ecx, edx
cmp al, 3
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ecx
jne 0x447c0b
mov al, byte [ebp + 0x9c]
test al, al
je 0x447bb6
mov ecx, dword [ebx]
call fcn.00454cb0
test eax, eax
je 0x447bb6
lea ecx, [esp + 0x250]
push 0x100
push ecx
mov ecx, dword [ebx]
call fcn.00454cb0
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
lea edx, [esp + 0x250]
push edx
call fcn.00442c90
add esp, 4
mov dword [ebx + 0x38], eax
mov al, byte [ebp + 0x9e]
test al, al
je 0x447c0b
mov ecx, dword [ebx]
push 0
push 0
push 1
push esi
call fcn.00454950
mov ecx, dword [ebx]
push eax
push esi
call fcn.004548f0
mov ecx, dword [ebx]
push eax
push esi
call fcn.00454890
mov ecx, dword [ebx]
push eax
call fcn.00454480
push eax
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.00456950
lea ecx, [esp + 0x224]
push ecx
call fcn.00442c90
add esp, 0x28
mov dword [ebx + 0x3c], eax
mov al, byte [ebp + 0x99]
cmp al, 1
jne 0x447c25
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], edx
jmp 0x447ccc
test al, al
jne 0x447c7d
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebp + 0xd4]
mov esi, dword [sym.imp.kernel32.dll_MulDiv]
push ecx
push edx
push edi
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebp + 0x50]
call fcn.004c836c
mov edx, dword [esp + 0x88]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xe0]
mov ecx, dword [ebp + 0xd8]
push eax
push ecx
push edx
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [ebp + 0x50]
call fcn.004c836c
jmp 0x447ccc
cmp al, 2
jne 0x447ca3
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xa8]
call fcn.004c836c
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xac]
jmp 0x447cc7
cmp al, 3
jne 0x447ccf
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
call fcn.004c836c
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004c836c
mov dword [ebx + 0x14], eax
mov al, byte [ebp + 0x9a]
test al, al
je 0x447d30
fild dword [esp + 0x84]
fild dword [ebx + 0x10]
fdiv st(1)
fst qword [esp + 0xcc]
fild dword [esp + 0x88]
fstp qword [esp + 0x74]
fild dword [ebx + 0x14]
fdiv qword [esp + 0x74]
fstp qword [esp + 0x14]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x447d24
fstp st(0)
fld qword [esp + 0x74]
fmul qword [esp + 0xcc]
call fcn.004c836c
mov dword [ebx + 0x14], eax
jmp 0x447d30
fmul qword [esp + 0x14]
call fcn.004c836c
mov dword [ebx + 0x10], eax
mov al, byte [ebp + 0x99]
mov dword [esp + 0x14], 0
cmp al, 3
jne 0x447e54
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fisub dword [ebx + 0x10]
call fcn.004c836c
mov esi, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
add eax, esi
mov dword [ebx + 8], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
fisub dword [ebx + 0x14]
call fcn.004c836c
add eax, dword [esp + 0x4c]
mov dword [ebx + 0xc], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004c836c
mov ecx, eax
mov eax, dword [ebp + 0xe4]
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [ebx + 0x38]
sar edi, 1
add edx, ecx
add edi, edx
test eax, eax
je 0x447ddc
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x40], 0x8801
mov eax, dword [ebp + 0xe4]
add eax, edi
lea edx, [esi + ecx]
push eax
push edx
push edi
lea eax, [ebx + 0x18]
push esi
push eax
call dword [sym.imp.user32.dll_SetRect]
add edi, dword [ebp + 0xe4]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x447e07
mov edx, dword [esp + 0x34]
mov dword [ebx + 0x44], 0x8801
mov ecx, dword [ebp + 0xe4]
add ecx, edi
lea eax, [esi + edx]
push ecx
push eax
push edi
lea ecx, [ebx + 0x28]
push esi
push ecx
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esi, eax
mov dword [esp + 0x48], esi
sub esi, edx
add esi, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jle 0x447eec
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
sub eax, esi
add eax, ecx
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x447eec
jmp 0x447ee4
movsx eax, byte [ebp + 0x98]
cdq
mov ecx, 3
idiv ecx
sub edx, 0
je 0x447e92
dec edx
je 0x447e7c
dec edx
jne 0x447e99
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x10]
sub edx, eax
mov dword [ebx + 8], edx
jmp 0x447e99
mov eax, dword [esp + 0x3c]
mov edi, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x447e96
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
movsx ecx, byte [ebp + 0x98]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sub edx, 0
je 0x447edd
dec edx
je 0x447ec7
dec edx
jne 0x447ee4
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
sub edx, eax
mov dword [ebx + 0xc], edx
jmp 0x447ee4
mov eax, dword [esp + 0x40]
mov edi, dword [ebx + 0x14]
mov ecx, dword [esp + 0x20]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x447ee1
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x447f6b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
inc ecx
cmp edx, ecx
jne 0x447f5b
mov esi, eax
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
add edx, edi
lea eax, [edx*4 + 4]
push eax
call fcn.004c7e90
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x78], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
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 + 0x30]
mov eax, dword [esi + 4]
push eax
call fcn.004c7e56
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x7c]
add esp, 8
add eax, edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [edx + ecx*4], ebx
mov ecx, dword [eax + 8]
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x447f7b
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x80]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x4472fe
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 0x30]
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, dword [eax + 8]
jl 0x4472ae
mov ecx, dword [esp + 0x350]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret