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

Disassembly:
push 0xffffffffffffffff
push 0x5e3a28
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb4]
cmp byte [edi + 0x4c], 0
mov esi, 1
mov ebx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], ebx
je 0x4236d9
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov ebx, ecx
mov eax, dword [esp + 0xd0]
cdq
idiv ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd4]
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x423706
call fcn.00465810
cmp byte [edi + 0x4c], 0
je 0x423719
mov ecx, dword [edi + 0x54]
imul ecx, dword [edi + 0x50]
mov dword [esp + 0x40], ecx
jmp 0x42371f
mov dword [esp + 0x40], esi
mov ecx, esi
mov esi, ecx
imul esi, dword [esp + 0xb8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x6c], esi
jbe 0x423b7e
lea edx, [esi*4]
mov dword [esp + 0x38], edx
jmp 0x423763
mov edi, dword [esp + 0xb4]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov edx, dword [edi + 0x30]
test edx, edx
je 0x423b7e
mov ecx, dword [edi + 0x34]
sub ecx, edx
add esi, eax
sar ecx, 2
cmp esi, ecx
mov dword [esp + 0x4c], esi
jae 0x423b7e
xor esi, esi
xor ebp, ebp
cmp byte [edi + 0x4c], 0
je case.default.0x423796
mov ecx, dword [edi + 0x58]
cmp ecx, 3
ja case.default.0x423796
jmp dword [ecx*4 + 0x423b9c]
xor edx, edx
div ebx
mov esi, edx
jmp 0x4237c2
xor edx, edx
div dword [esp + 0x28]
mov esi, edx
jmp 0x4237c2
xor edx, edx
div ebx
jmp 0x4237bb
xor edx, edx
div dword [esp + 0x28]
mov esi, ebx
sub esi, edx
sub esi, 1
mov ebp, eax
mov ecx, dword [edi + 0x30]
test ecx, ecx
mov dword [esp + 0x50], 0
je 0x4237e1
mov eax, dword [edi + 0x34]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x4c], eax
jb 0x4237e6
call fcn.0044b7ad
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0xb4]
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x48]
call fcn.00423e20
mov ebx, dword [esp + 0xb4]
cmp byte [ebx + 0x41], 0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
je 0x423845
cmp edx, ecx
sbb eax, eax
xor ebx, ebx
neg eax
cmp dword [esp + 0x20], edi
setl bl
cmp ebx, eax
mov ebx, dword [esp + 0xb4]
je 0x423845
mov eax, edx
mov edx, ecx
mov ecx, eax
mov dword [esp + 0x50], 0x5a
fld1
mov eax, dword [ebx + 0x48]
sub eax, 1
fst qword [esp + 0x64]
je 0x423862
sub eax, 1
jne 0x4238ab
cmp edx, dword [esp + 0x20]
jg 0x423862
cmp ecx, edi
jle 0x4238ab
mov eax, edx
fstp st(0)
test eax, eax
fild dword [esp + 0x20]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jge 0x42387c
fadd qword [0x659f10]
mov eax, ecx
fdivp st(1)
test eax, eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x24]
fild dword [esp + 0x2c]
jge 0x423896
fadd qword [0x659f10]
fdivp st(1)
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4238a5
fstp st(1)
jmp 0x4238a7
fstp st(0)
fst qword [esp + 0x64]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x4238b8
fst qword [eax]
imul esi, dword [esp + 0x20]
imul ebp, edi
add esi, dword [esp + 0xc8]
add ebp, dword [esp + 0xcc]
test edx, edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x2c], edx
fild dword [esp + 0x74]
fst qword [esp + 0x84]
fild dword [esp + 0x78]
fst qword [esp + 0x8c]
fild dword [esp + 0x2c]
jge 0x4238fe
fadd qword [0x659f10]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
fmul st(3)
or eax, 0xc00
test ecx, ecx
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x2c]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], ebp
fldcw word [esp + 0x1c]
fild dword [esp + 0x2c]
jge 0x423938
fadd qword [0x659f10]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
fmulp st(3)
cmp byte [ebx + 0x42], 0
fxch st(2)
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
fldcw word [esp + 0x1c]
mov dword [esp + 0x1c], esi
je 0x4239a0
mov eax, dword [esp + 0x20]
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, edi
sub eax, esi
cdq
faddp st(1)
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
fstp qword [esp + 0x84]
fild dword [esp + 0x18]
faddp st(1)
fstp qword [esp + 0x8c]
jmp 0x4239a4
fstp st(0)
fstp st(0)
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipCreateRegion
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x98], eax
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0xbc]
mov edx, dword [edi]
push eax
push edx
call sub.gdiplus.dll_GdipGetClip
test eax, eax
je 0x4239e4
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
push 0
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
call sub.gdiplus.dll_GdipSetClipRectI
test eax, eax
je 0x423a09
mov dword [edi + 4], eax
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x423a8e
test ebp, ebp
fld qword [esp + 0x84]
fstp dword [esp + 0x2c]
mov dword [esp + 0x58], ebp
fld qword [esp + 0x8c]
fstp dword [esp + 0x70]
fild dword [esp + 0x58]
jge 0x423a3c
fadd dword [0x659f44]
test esi, esi
fstp dword [esp + 0x58]
mov dword [esp + 0x54], esi
fild dword [esp + 0x54]
jge 0x423a52
fadd dword [0x659f44]
mov edx, dword [eax + 4]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
mov eax, dword [edi]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [esp + 0x68]
fstp dword [esp + 8]
fld dword [esp + 0x80]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x423a8e
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x423aa3
mov eax, dword [ebx + 0x34]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x4c], eax
jb 0x423aa8
call fcn.0044b7ad
fld qword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, dword [ebx + 0x30]
sub esp, 8
fstp qword [esp]
push 0
push 1
push 0x3ffffff
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x9c]
push edx
mov edx, dword [ecx + eax]
mov eax, dword [ebx + 4]
push edx
push eax
call fcn.00420270
mov esi, dword [esp + 0x18]
mov ecx, dword [edi]
push 0
push esi
push ecx
call sub.gdiplus.dll_GdipSetClipRegion
test eax, eax
je 0x423af2
mov dword [edi + 4], eax
cmp byte [ebx + 0x4c], 0
je 0x423b53
cmp byte [ebx + 0x5c], 0
je 0x423b53
fld1
lea edx, [esp + 0x5c]
push edx
push 0
push ecx
fstp dword [esp]
push 0xff000000
mov dword [esp + 0x6c], 0
call sub.gdiplus.dll_GdipCreatePen1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call sub.gdiplus.dll_GdipDrawRectangleI
test eax, eax
je 0x423b49
mov dword [edi + 4], eax
mov eax, dword [esp + 0x5c]
push eax
call sub.gdiplus.dll_GdipDeletePen
push esi
mov dword [esp + 0xb0], 0xffffffff
call sub.gdiplus.dll_GdipDeleteRegion
mov eax, dword [esp + 0x44]
add dword [esp + 0x38], 4
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
jb 0x423750
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x24