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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40f5dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x4111f0
lea ecx, [esp + 0x40]
call dword [0x4101d8]
xor eax, eax
mov dword [esp + 0x25c], eax
mov ecx, 7
jmp 0x406220
cmp word [eax*8 + 0x413070], cx
je 0x40625c
inc eax
cmp eax, 8
jl 0x406220
mov ecx, dword [0x413074]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
mov ebx, dword [esi + 0x24]
sub eax, ecx
mov ecx, dword [esi + 0x2c]
sub ecx, ebx
cmp ecx, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
jle 0x406269
fild dword [esp + 0x6c]
jmp 0x40626d
mov eax, dword [eax*8 + 0x413074]
mov dword [esp + 0x70], eax
jmp 0x40623a
fild dword [esp + 0x68]
fld qword [0x4111e8]
fmul st(1)
call fcn.0040e9d0
fmul qword [0x4111e0]
mov dword [esp + 0x9c], eax
call fcn.0040e9d0
mov edx, dword [edi + 0x48]
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x130], edx
xor eax, eax
mov ecx, 6
cmp word [eax*8 + 0x413070], cx
je 0x406371
inc eax
cmp eax, 8
jl 0x4062b1
mov eax, dword [0x413074]
push eax
mov ecx, esi
call fcn.004041a0
xor ecx, ecx
cmp word [edi + 0x2a], cx
mov dword [esp + 0x64], ecx
jle 0x406f95
add ebx, 0x10
mov dword [esp + 0x34], ebx
lea esp, [esp]
movsx edx, word [edi + 0x2c]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jle 0x4063b3
lea edi, [ecx + 1]
mov ecx, dword [esp + 0x130]
mov dx, word [ecx]
movsx ebx, dx
cmp ebx, edi
je 0x40637d
test dx, dx
jne 0x406355
mov ebx, dword [esp + 0x98]
lea edx, [eax + eax*2]
lea edx, [ebx + edx*8]
mov ebx, dword [edx]
mov dword [esp + 0x1c], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x20], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0x24], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x28], ebx
mov ebx, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
movzx edx, byte [ecx + 2]
mov ebx, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x10]
inc edx
add ecx, 0x14
cmp edx, ebx
mov dword [esp + 0x10], edx
jl 0x406310
jmp 0x4063b3
mov eax, dword [eax*8 + 0x413074]
jmp 0x4062ca
mov ecx, dword [esp + 0x98]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x406f72
mov eax, dword [esp + 0x34]
mov edi, dword [eax - 0x10]
mov ebx, dword [eax - 0xc]
xor eax, eax
mov ecx, 6
cmp word [eax*8 + 0x413070], cx
je 0x406404
inc eax
cmp eax, 8
jl 0x4063d0
mov eax, dword [0x413074]
push eax
mov ecx, esi
call fcn.004041a0
mov cl, byte [esp + 0x2e]
movsx eax, cl
cmp eax, 5
ja case.default.0x4063fd
jmp dword [eax*4 + 0x40707c]
mov eax, dword [eax*8 + 0x413074]
jmp 0x4063e5
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ebx]
push edx
lea ecx, [eax + edi]
push ecx
sub ebx, eax
push ebx
sub edi, eax
push edi
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.004044f0
jmp case.default.0x4063fd
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ebx]
push ecx
lea edx, [eax + edi]
push edx
sub ebx, eax
push ebx
sub edi, eax
push edi
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
mov ecx, esi
call fcn.004040f0
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.00404450
jmp case.default.0x4063fd
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ebx]
push edx
lea ecx, [eax + edi]
push ecx
mov edx, ebx
sub edx, eax
push edx
mov ecx, edi
sub ecx, eax
push ecx
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.004044f0
mov eax, dword [esp + 0x20]
test eax, eax
jle case.default.0x4063fd
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ebx]
push ecx
lea edx, [eax + edi]
push edx
sub ebx, eax
push ebx
sub edi, eax
push edi
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
mov ecx, 1
cmp word [eax*8 + 0x413070], cx
je 0x406552
inc eax
cmp eax, 8
jl 0x4064f4
mov eax, dword [0x413074]
push eax
mov ecx, esi
call fcn.004041a0
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.004044f0
xor eax, eax
mov ecx, 6
jmp 0x406530
cmp word [eax*8 + 0x413070], cx
je 0x40655b
inc eax
cmp eax, 8
jl 0x406530
mov eax, dword [0x413074]
push eax
mov ecx, esi
call fcn.004041a0
jmp case.default.0x4063fd
mov eax, dword [eax*8 + 0x413074]
jmp 0x406509
mov eax, dword [eax*8 + 0x413074]
push eax
mov ecx, esi
call fcn.004041a0
jmp case.default.0x4063fd
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x406896
cmp cl, 3
mov ecx, dword [esp + 0x1c]
je 0x406588
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x78], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x7c], eax
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
push edx
lea esi, [esp + 0x60]
lea ecx, [esp + 0x80]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x84], eax
call fcn.00405940
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
add ecx, ebx
add eax, edi
mov dword [esp + 0x84], ecx
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x84], eax
call fcn.00405940
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add eax, edi
add ecx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xf8], eax
sub ecx, edx
sub edx, dword [esp + 0x18]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x100], esi
mov dword [esp + 0x108], esi
mov esi, dword [esp + 0x40]
add esp, 8
sub eax, dword [esp + 0x10]
mov dword [esp + 0x10c], esi
mov dword [esp + 0x114], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x110], eax
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x104], edx
mov dword [esp + 0x118], esi
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], ecx
mov dword [esp + 0x12c], eax
mov al, byte [esp + 0x2e]
xor ecx, ecx
cmp al, 1
mov eax, dword [esp + 0x24]
setne cl
lea edx, [esp + 0xf0]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], 8
dec ecx
and ecx, eax
mov dword [esp + 0x1e8], ecx
mov edi, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1e8]
add edx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
push edx
lea esi, [esp + 0x60]
call fcn.00405940
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
add eax, edi
add ecx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ecx
add edx, 8
add esp, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jne 0x406700
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x144], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14c], ecx
push 0
mov ecx, esi
mov word [esp + 0x144], 0
mov word [esp + 0x146], 7
mov dword [esp + 0x14c], eax
mov dword [esp + 0x154], edx
call fcn.004040f0
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x16c], ecx
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x174], ecx
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x17c], ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x18c], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 0x194], ecx
mov ecx, dword [esp + 0x124]
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x19c], ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x144]
push ecx
push 1
mov ecx, esi
call fcn.00404730
jmp 0x406e93
jle 0x406d96
cmp cl, 3
mov ecx, dword [esp + 0x1c]
je 0x4068a9
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x84], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x8c], eax
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
push edx
lea esi, [esp + 0x44]
lea ecx, [esp + 0x90]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x94], eax
call fcn.00405940
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
add ecx, ebx
add eax, edi
mov dword [esp + 0x94], ecx
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x94], eax
call fcn.00405940
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add eax, edi
add ecx, ebx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x90], ecx
mov ecx, esi
sub ecx, eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x40]
sub edx, esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc8], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x20]
add esp, 8
sub edx, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0xd4], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x134], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd8], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0xe4], eax
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x28]
add eax, 0x134fd900
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xec], edx
cdq
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xe0], esi
mov esi, 0x269fb200
idiv esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20c], eax
mov dword [esp + 0x1f4], ecx
mov dword [esp + 0x208], ecx
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 0x9a7ec80]
mov word [esp + 0x1f2], 0
mov word [esp + 0x206], 2
mov word [esp + 0x21a], 4
mov word [esp + 0x22e], 6
mov dword [esp + 0x200], edx
cdq
idiv esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x220], eax
mov eax, ecx
mov dword [esp + 0x214], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x21c], edx
cdq
idiv esi
mov eax, dword [esp + 0x134]
mov dword [esp + 0x234], eax
lea eax, [ecx + 0x1cf7c580]
mov ecx, esi
mov dword [esp + 0x228], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x230], edx
cdq
idiv ecx
mov al, byte [esp + 0x2e]
mov dword [esp + 0x14], 4
mov dword [esp + 0x23c], edx
xor edx, edx
cmp al, 1
mov eax, dword [esp + 0x24]
setne dl
dec edx
and edx, eax
lea eax, [esp + 0x1f4]
mov dword [esp + 0x138], edx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [esp + 0x138]
add eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
push eax
lea esi, [esp + 0x44]
call fcn.00405940
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add ecx, edi
add edx, ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x9a7ec80
add eax, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add esp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x406b10
lea eax, [esp + 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [esp + 0x138]
add eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
push eax
lea esi, [esp + 0x44]
call fcn.00405940
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
lea eax, [ecx + edi]
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
add edx, 8
add esp, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x406b73
mov esi, dword [ebp + 0xc]
push 1
mov ecx, esi
call fcn.004040f0
mov ebx, dword [esp + 0x30]
lea edi, [esp + 0x1f8]
mov dword [esp + 0x14], 4
lea ecx, [ecx]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_BeginPath]
mov ecx, dword [edi]
mov eax, dword [edi - 4]
lea edx, [ecx + ebx]
push edx
lea edx, [eax + ebx]
push edx
sub ecx, ebx
push ecx
sub eax, ebx
push eax
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.USER32.dll_SetRect]
fild dword [edi + 4]
sub esp, 0x10
lea ecx, [esp + 0x250]
fstp qword [esp + 8]
fild dword [edi + 8]
fstp qword [esp]
push ecx
mov ecx, esi
call fcn.00404550
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_StrokeAndFillPath]
mov eax, dword [esp + 0x14]
add edi, 0x14
dec eax
mov dword [esp + 0x14], eax
jne 0x406be0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x158], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x164], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1ac], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x1b4], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x1bc], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x1c4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x1cc], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x1d4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x15c], edx
lea edx, [esp + 0x1a8]
mov dword [esp + 0x1dc], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x1e0], eax
push edx
lea eax, [esp + 0x158]
push eax
mov dword [esp + 0x1ec], ecx
push 1
mov ecx, esi
mov word [esp + 0x160], 0
mov word [esp + 0x162], 7
call fcn.00404730
jmp 0x406e93
cmp cl, 3
jne 0x406dd4
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ebx]
push ecx
lea edx, [eax + edi]
push edx
sub ebx, eax
push ebx
sub edi, eax
push edi
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.004048b0
jmp case.default.0x4063fd
cmp cl, 1
jne case.default.0x4063fd
mov esi, dword [ebp + 0xc]
push 0
mov ecx, esi
call fcn.00404290
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004040f0
mov eax, dword [esp + 0x20]
jmp 0x406e18
mov ecx, dword [ebp + 0xc]
push 1
call fcn.00404290
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004040f0
mov eax, dword [esp + 0x20]
sub eax, esi
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
sub ecx, eax
mov dword [esp + 0x54], ecx
push edx
lea esi, [esp + 0x50]
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x14], eax
call fcn.00405940
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 4
add eax, ebx
add ecx, edi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00404950
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
add edx, eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], edx
call fcn.00405940
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
add esp, 4
add edx, ebx
add eax, edi
push edx
push eax
call fcn.00404910
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp word [ecx + 0x2a], 4
jg 0x406f30
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x70]
mov edi, dword [eax - 8]
mov ebx, dword [eax - 4]
push edx
mov ecx, esi
call fcn.004041a0
mov eax, dword [esp + 0x94]
push eax
mov ecx, esi
call fcn.004040f0
push 0
mov ecx, esi
call fcn.00403f60
fld qword [0x411068]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00403f70
mov eax, dword [esp + 0x9c]
add eax, eax
push eax
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, esi
call fcn.00403fd0
push 0
push 0
mov ecx, esi
call fcn.00403f30
push 5
mov ecx, esi
call fcn.00403f50
push ebx
push edi
mov ecx, esi
call fcn.00404950
push 0
mov ecx, esi
call fcn.00403f60
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00404c00
jmp 0x406f72
mov eax, dword [esp + 0x64]
cmp eax, 3
jge 0x406f4f
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x4111dc
jmp 0x406f68
cmp eax, 4
jge 0x406f72
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x4111d8
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov edx, dword [esp + 0x34]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x64]
add edx, 0x20
mov dword [esp + 0x34], edx
movsx edx, word [edi + 0x2a]
inc ecx
cmp ecx, edx
mov dword [esp + 0x64], ecx
jl 0x4062f0
cmp word [edi + 0x2a], 4
jle 0x407054
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x68]
jle 0x406fb0
fild dword [esp + 0x6c]
jmp 0x406fb4
fild dword [esp + 0x68]
fld qword [0x4111e8]
fmul st(1)
call fcn.0040e9d0
fmul qword [0x4111e0]
mov edi, eax
call fcn.0040e9d0
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, esi
mov ebx, eax
call fcn.004041a0
push ebx
mov ecx, esi
call fcn.004040f0
push 0
mov ecx, esi
call fcn.00403f60
fld qword [0x411068]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00403f70
lea eax, [edi + edi]
push eax
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, esi
call fcn.00403fd0
push 0
push 0
mov ecx, esi
call fcn.00403f30
push 5
mov ecx, esi
call fcn.00403f50
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
add edx, 0xf4240
push edx
add eax, 0xf4240
push eax
mov ecx, esi
call fcn.00404950
push 0
mov ecx, esi
call fcn.00403f60
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00404c00
push 1
mov ecx, esi
call fcn.00404290
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret