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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb21e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push ebx
push ebp
mov ebp, ecx
push esi
push edi
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fld st(0)
fmul qword [0x4cca80]
call fcn.004bedcc
fild dword [ebp + 0xd8]
mov dword [esp + 0x34], eax
fmul dword [ebp + 0xb4]
fst dword [esp + 0x30]
fmul qword [0x4cca80]
call fcn.004bedcc
fmul qword [0x4cc938]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.004bedcc
fld dword [esp + 0x30]
fmul qword [0x4cc938]
mov dword [esp + 0x50], eax
call fcn.004bedcc
mov dword [esp + 0x54], eax
mov al, byte [ebp + 0x99]
cmp al, 3
jne 0x44ed22
mov cl, byte [ebp + 0x9c]
test cl, cl
je 0x44ecf5
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
mov al, byte [ebp + 0x9e]
test al, al
je 0x44ed09
add esi, dword [ebp + 0xe4]
mov dword [esp + 0x38], esi
test cl, cl
jne 0x44ed11
test al, al
je 0x44ed22
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 0x44faac
cmp ebx, ecx
jge 0x44ed4a
test ebx, ebx
jl 0x44ed4a
mov eax, dword [eax + 4]
mov edi, dword [eax + ebx*4]
jmp 0x44ed4c
xor edi, edi
mov ecx, edi
mov dword [esp + 0x78], edi
call fcn.0045c970
mov esi, dword [ebp + 0x34]
mov eax, dword [ebp + 0x38]
test esi, esi
mov dword [esp + 0x88], eax
jg 0x44ed6d
mov esi, 1
test eax, eax
jg 0x44ed7f
mov ecx, edi
call fcn.0045cb60
mov dword [esp + 0x88], eax
lea ecx, [esi - 1]
cmp ecx, eax
mov dword [esp + 0x44], ecx
jge 0x44fa9b
mov eax, dword [ebp + 0x78]
xor edi, edi
cmp eax, edi
jne 0x44faac
cmp dword [esp + 0x2c], edi
jne 0x44f044
push 0x1c
call fcn.004be967
mov esi, eax
add esp, 4
mov dword [esp + 0x7c], esi
cmp esi, edi
mov dword [esp + 0x568], edi
je 0x44edf2
push 0x80
mov dword [esi], 0x4cca70
call fcn.004be967
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x1f
mov dword [esi + 0x14], 0x40
mov dword [esi + 0x10], 1
mov ebx, esi
jmp 0x44edf4
xor ebx, ebx
cmp ebx, edi
mov dword [esp + 0x568], 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x44eea1
mov eax, dword [ebp + 0xf4]
mov edx, dword [ebp + 0xf0]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x44ee85
add eax, dword [ebp + 0xfc]
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
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.004be975
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 0x44eec5
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.004bedcc
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.004bedcc
mov edi, dword [ebp + 0xd0]
fmul dword [ebp + 0x88]
sub edi, eax
mov dword [esp + 0x40], edi
call fcn.004bedcc
fld dword [esp + 0x14]
fmul dword [ebp + 0x90]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.004bedcc
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 0x44f03c
mov eax, dword [esp + 0x50]
mov ecx, 1
add eax, esi
cdq
idiv dword [esp + 0x34]
cmp eax, 1
jl 0x44ef6d
mov ecx, eax
movsx eax, byte [ebp + 0x98]
cdq
mov ebx, 3
idiv ebx
sub edx, 0
je 0x44efb4
dec edx
je 0x44ef9a
dec edx
jne 0x44efbc
imul ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
sub esi, ecx
add esi, eax
mov dword [esp + 0x58], esi
jmp 0x44efbc
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 0x44efbc
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 0x44efd6
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 0x44f017
dec edx
je 0x44f003
dec edx
jne 0x44f01f
imul ecx, esi
sub edi, ecx
add edi, ebx
mov dword [esp + 0x5c], edi
jmp 0x44f01f
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 0x44f01f
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.004be967
add esp, 4
test eax, eax
je 0x44f069
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 0x44f06d
xor ebx, ebx
xor edx, edx
mov ecx, dword [ebp + 0x30]
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 8]
jge 0x44f083
cmp eax, edx
jl 0x44f083
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 0x44f549
mov al, byte [0x4eb858]
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 0x44f1b2
mov al, byte [ebp + 0x9f]
test al, al
je 0x44f12b
lea ecx, [esp + 0x358]
push ecx
mov ecx, edx
call fcn.0045b1b0
push eax
call fcn.0044a3b0
add esp, 8
lea edx, [esp + 0xd4]
lea eax, [esp + 0x358]
push edx
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov al, byte [ebp + 0x9c]
test al, al
je 0x44f118
lea ecx, [esp + 0xd4]
push 0x4e2350
push ecx
jmp 0x44f125
lea edx, [esp + 0xd4]
push 0x4e073c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [ebp + 0x9c]
test al, al
jne 0x44f147
mov cl, byte [ebp + 0x9f]
mov dword [esp + 0x14], 0
test cl, cl
je 0x44f14f
mov dword [esp + 0x14], 1
test al, al
je 0x44f15e
mov ecx, dword [ebx]
call fcn.0045b1b0
mov edi, eax
jmp 0x44f160
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx]
push 0
push eax
push 1
push esi
call fcn.0045ae50
mov ecx, dword [ebx]
push eax
push esi
call fcn.0045adf0
mov ecx, dword [ebx]
push eax
push esi
call fcn.0045ad90
mov ecx, dword [ebx]
push eax
call fcn.0045a980
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0xf0]
push edi
push ecx
call esi
lea edx, [esp + eax + 0xf4]
push edx
call fcn.0045cdc0
add esp, 0x24
jmp 0x44f293
mov al, byte [ebp + 0x9c]
test al, al
jne 0x44f1ca
mov al, byte [ebp + 0x9f]
test al, al
je 0x44f28d
mov ecx, edx
call fcn.0045b1b0
test eax, eax
je 0x44f28d
mov al, byte [ebp + 0x9f]
test al, al
je 0x44f22d
mov al, byte [0x4eb858]
mov ecx, 0x41
mov byte [esp + 0x250], al
xor eax, eax
lea edi, [esp + 0x251]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x250]
push ecx
mov ecx, dword [ebx]
call fcn.0045b1b0
push eax
call fcn.0044a3b0
add esp, 8
lea edx, [esp + 0xd4]
lea eax, [esp + 0x250]
push edx
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov al, byte [ebp + 0x9c]
test al, al
je 0x44f28d
mov al, byte [ebp + 0x9f]
test al, al
je 0x44f254
lea ecx, [esp + 0xd4]
push 0x4e076c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0xd4]
push edx
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.0045b1b0
push eax
call sub.comdlg32.dll_GetFileTitleA
jmp 0x44f293
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xd4]
test ecx, ecx
je 0x44f3ff
mov eax, dword [ebx + 4]
test eax, eax
jle 0x44f2cb
inc eax
lea edx, [esp + 0xd4]
push eax
push str.___d_
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 + 0xa0], ecx
mov dword [esp + 0xb0], ecx
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb4], edx
mov edx, dword [ebp + 0x68]
push ecx
push edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 0x68]
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [esp + 0x9c]
push 0xc01
push eax
lea ecx, [esp + 0xdc]
push 0xffffffffffffffff
push ecx
push edx
call edi
mov edx, dword [ebp + 0x68]
lea eax, [esp + 0xac]
push 0xc11
push eax
lea ecx, [esp + 0xdc]
push 0xffffffffffffffff
push ecx
push edx
call edi
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb8]
cmp eax, ecx
mov dword [ebx + 0x40], 0x8810
je 0x44f3a0
mov edx, dword [esp + 0xac]
lea eax, [ebx + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 0xb0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb4]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x44f3ce
mov esi, dword [esp + 0x9c]
lea edx, [ebx + 0x18]
mov dword [ebx + 0x40], 0x8811
mov ecx, dword [esp + 0x24]
mov dword [edx], esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0xa4], 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.0044a200
add esp, 4
mov dword [ebx + 0x38], eax
jmp 0x44f405
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
mov al, byte [ebp + 0x9d]
test al, al
je 0x44f549
mov ecx, dword [ebx]
call fcn.0045b1b0
test eax, eax
je 0x44f549
mov ecx, dword [ebx]
push 0
call fcn.0045b1b0
push eax
call fcn.0044b550
mov esi, eax
add esp, 8
test esi, esi
je 0x44f549
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 + 0x90], ecx
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x98], edx
mov edx, dword [ebp + 0x68]
mov dword [esp + 0xbc], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x9c], 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 + 0x8c]
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 + 0x98]
cmp ecx, edx
mov dword [ebx + 0x44], 0x8810
je 0x44f507
mov edi, dword [esp + 0x8c]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x28], edi
mov edi, dword [esp + 0x90]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x94]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
jmp 0x44f532
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 0x44f557
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x44f576
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 0x44f5f1
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.0045ad90
cmp dword [esp + 0x68], eax
jl 0x44f5d1
mov ecx, dword [ebx]
push esi
call fcn.0045ad90
mov dword [esp + 0x68], eax
mov ecx, dword [ebx]
push esi
call fcn.0045adf0
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
jl 0x44f61e
mov ecx, dword [ebx]
push esi
call fcn.0045adf0
mov ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x44f61e
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x78]
push esi
mov ecx, edi
call fcn.0045adf0
push eax
push esi
mov ecx, edi
call fcn.0045ad90
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 + 0x70], edi
mov dword [esp + 0x74], ecx
jne 0x44f6db
mov al, byte [ebp + 0x9c]
test al, al
je 0x44f686
mov ecx, dword [ebx]
call fcn.0045b1b0
test eax, eax
je 0x44f686
lea ecx, [esp + 0x460]
push 0x100
push ecx
mov ecx, dword [ebx]
call fcn.0045b1b0
push eax
call sub.comdlg32.dll_GetFileTitleA
lea edx, [esp + 0x460]
push edx
call fcn.0044a200
add esp, 4
mov dword [ebx + 0x38], eax
mov al, byte [ebp + 0x9e]
test al, al
je 0x44f6db
mov ecx, dword [ebx]
push 0
push 0
push 1
push esi
call fcn.0045ae50
mov ecx, dword [ebx]
push eax
push esi
call fcn.0045adf0
mov ecx, dword [ebx]
push eax
push esi
call fcn.0045ad90
mov ecx, dword [ebx]
push eax
call fcn.0045a980
push eax
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0045cdc0
lea ecx, [esp + 0x224]
push ecx
call fcn.0044a200
add esp, 0x28
mov dword [ebx + 0x3c], eax
mov al, byte [ebp + 0x99]
cmp al, 1
jne 0x44f6f5
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], edx
jmp 0x44f799
test al, al
jne 0x44f74a
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.004bedcc
mov edx, dword [esp + 0x74]
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.004bedcc
jmp 0x44f799
cmp al, 2
jne 0x44f770
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xa8]
call fcn.004bedcc
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xac]
jmp 0x44f794
cmp al, 3
jne 0x44f79c
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
call fcn.004bedcc
mov dword [ebx + 0x10], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004bedcc
mov dword [ebx + 0x14], eax
mov al, byte [ebp + 0x9a]
test al, al
je 0x44f7f7
fild dword [esp + 0x70]
fild dword [ebx + 0x10]
fdiv st(1)
fst qword [esp + 0xcc]
fild dword [esp + 0x74]
fstp qword [esp + 0x7c]
fild dword [ebx + 0x14]
fdiv qword [esp + 0x7c]
fstp qword [esp + 0x14]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x44f7eb
fstp st(0)
fld qword [esp + 0x7c]
fmul qword [esp + 0xcc]
call fcn.004bedcc
mov dword [ebx + 0x14], eax
jmp 0x44f7f7
fmul qword [esp + 0x14]
call fcn.004bedcc
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebx + 0x10]
cmp ecx, eax
jg 0x44f811
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 0xd0]
cmp ecx, edx
jle 0x44f82a
mov edx, dword [esp + 0x74]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xcc]
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebx + 0x14], eax
mov al, byte [ebp + 0x99]
mov dword [esp + 0x14], 0
cmp al, 3
jne 0x44f94e
fild dword [ebp + 0xd4]
fmul dword [ebp + 0xb0]
fisub dword [ebx + 0x10]
call fcn.004bedcc
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.004bedcc
add eax, dword [esp + 0x4c]
mov dword [ebx + 0xc], eax
fild dword [ebp + 0xd8]
fmul dword [ebp + 0xb4]
call fcn.004bedcc
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 0x44f8d6
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 0x44f901
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 0x44f9e6
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 0x44f9e6
jmp 0x44f9de
movsx eax, byte [ebp + 0x98]
cdq
mov ecx, 3
idiv ecx
sub edx, 0
je 0x44f98c
dec edx
je 0x44f976
dec edx
jne 0x44f993
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x10]
sub edx, eax
mov dword [ebx + 8], edx
jmp 0x44f993
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 0x44f990
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 0x44f9d7
dec edx
je 0x44f9c1
dec edx
jne 0x44f9de
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
sub edx, eax
mov dword [ebx + 0xc], edx
jmp 0x44f9de
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 0x44f9db
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov dword [esp + 0x14], 1
test ebx, ebx
je 0x44fa6f
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
inc ecx
cmp edx, ecx
jne 0x44fa5f
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.004be967
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x80], 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.004be975
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x84]
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 0x44fa7f
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x44ed8e
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 0x30]
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, dword [eax + 8]
jl 0x44ed3e
mov ecx, dword [esp + 0x560]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret