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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xfc0
test eax, eax
push ebp
mov ebp, ecx
je 0x4204f1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
push ebx
push esi
push edi
mov edx, dword [ebp + 0x24]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
je 0x420b1f
mov eax, dword [esp + 0x10]
mov edi, 0xffffffe0
xor ecx, ecx
sub edi, edx
lea esi, [eax*4]
lea eax, [edx + 0x20]
mov dword [esp + 0x74], edi
mov edi, dword [eax]
test edi, edi
je 0x42054c
test ebx, ebx
je 0x42053a
mov ebx, dword [esi + ebx + 0x20]
mov edi, dword [edi + 0xc]
cmp edi, dword [ebx + 0xc]
jae 0x420548
mov esi, dword [esp + 0x74]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
add esi, eax
mov ebx, dword [esp + 0x1c]
inc ecx
add eax, 4
cmp ecx, 2
jl 0x420524
mov edx, dword [edx]
test edx, edx
jne 0x420509
test ebx, ebx
je 0x420b1f
cmp dword [esp + 0x10], 1
jne 0x420576
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], eax
mov edx, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x20]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [esp + 0x10], edi
mov dword [ebp + 0x20], eax
je 0x420593
push 2
jmp 0x420595
push 1
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov eax, dword [esp + 0xfd4]
test eax, eax
jne 0x4205c0
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
lea edx, [esp + 0x20]
push edx
call fcn.00416520
add esp, 4
mov esi, ebx
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esi + 4]
push 0
push eax
mov eax, dword [edx + 0x28]
push ecx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
test esi, esi
je 0x4206b5
lea edx, [esp + 0x20]
lea edi, [esi + 4]
push edx
push edi
call fcn.004167d0
lea eax, [esp + 0x28]
lea ecx, [esi + 0xc]
push eax
push ecx
call fcn.004167d0
lea edx, [esp + 0x30]
lea ebx, [esi + 0x14]
push edx
push ebx
call fcn.004167d0
mov eax, dword [esi + 0x1c]
add esp, 0x18
test eax, eax
je 0x42063e
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
push ecx
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x42068f
lea edx, [esp + 0x110]
push edx
push edi
call fcn.00408730
mov ecx, dword [ebp + 0x30]
add esp, 8
xor eax, eax
mov edx, dword [esp + eax + 0x118]
mov dword [esp + eax + 0xc0], edx
mov edx, dword [esp + eax + 0x11c]
mov dword [esp + eax + 0xc4], edx
add eax, 8
cmp eax, 0x18
jl 0x420654
mov ecx, dword [ecx + 0x28]
lea eax, [esp + 0xc0]
push 3
push eax
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_PolyBezierTo]
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, ebp
mov dword [esi + 0x20], 0
call fcn.004203f0
mov esi, eax
test esi, esi
jne 0x4205f1
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
push 0
push edi
mov ecx, ebp
call fcn.004203f0
mov esi, eax
test esi, esi
jne 0x4205cf
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + 0x28]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esp + 0xfd4]
test eax, eax
jne 0x4204f4
mov al, byte [edi + 0x14]
test al, al
je 0x4206f9
cmp word [edi + 0x26], si
je 0x4204f4
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0x1c], edx
call fcn.00420320
mov eax, dword [ebx + 0x28]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x42073a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [ebp + 0x30]
push eax
call fcn.00469a20
jmp 0x4204f4
mov al, byte [edi + 0x16]
test al, al
jne 0x42075d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x30]
call fcn.00469ab0
jmp 0x4204f4
push str.Before_creation_of_bitmap_n
call fcn.00407990
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x2c]
add esp, 4
sub edx, esi
mov esi, dword [esp + 0x20]
push ebx
push 7
sub eax, esi
push ebx
sar edx, 2
push 0x18
push edx
sar eax, 2
push eax
push ecx
lea ecx, [esp + 0xf4]
call fcn.00462f40
push str.After_creation_of_bitmap_n
call fcn.00407990
mov eax, dword [esp + 0xf8]
add esp, 4
cmp eax, ebx
je 0x420b0e
mov edx, dword [ebp + 0x2c]
lea ecx, [esp + 0x1dc]
mov eax, dword [edx + 0x105c]
push eax
call fcn.004230a0
push 7
push 6
push str.format_pix24__d__pix32__d_n
call fcn.00407990
mov ecx, dword [esp + 0xe8]
add esp, 0xc
push ecx
push str.format__d_n
call fcn.00407990
add esp, 8
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x1dc]
push 1
push ebx
push edx
call fcn.00423200
lea ecx, [esp + 0x1dc]
call fcn.00423330
lea eax, [esp + 0x1dc]
lea ecx, [esp + 0x130]
push eax
call fcn.00421b80
mov al, byte [edi + 0x16]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp al, 2
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], edx
jne 0x420870
lea esi, [edi + 0x30]
mov ecx, 0x19
lea edi, [esp + 0x160]
mov byte [esp + 0x146], al
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c0], ebx
jmp 0x42088c
cmp al, 1
jne 0x42088c
lea esi, [edi + 0x30]
mov ecx, 0x1f
lea edi, [esp + 0x160]
mov byte [esp + 0x146], al
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 4]
mov ecx, 6
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
sub eax, edi
mov edi, dword [esp + 0x44]
sub ecx, esi
mov esi, dword [esp + 0x48]
sar eax, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
sar edx, 2
sar ecx, 2
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp]
push eax
push ebx
push ebx
push ecx
sar edi, 2
sar esi, 2
sar edx, 2
lea ecx, [esp + 0x320]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
call fcn.00435390
lea eax, [esp + 0x130]
lea edx, [esp + 0x1dc]
push eax
lea ecx, [esp + 0x314]
mov dword [esp + 0x394], edx
call fcn.004354e0
lea ecx, [esp + 0x310]
call fcn.00435490
mov eax, dword [esp + 0x20c]
mov edx, dword [esp + 0x208]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0xa8], ebx
call fcn.004083b0
mov cx, word [esp + 0x64]
mov dx, word [esp + 0x68]
mov ax, word [esp + 0x6c]
mov word [esp + 0x94], cx
mov cx, word [esp + 0x70]
mov word [esp + 0x96], dx
mov dx, word [esp + 0x74]
mov word [esp + 0x9a], cx
mov word [esp + 0x98], ax
mov ax, word [esp + 0x78]
lea ecx, [esp + 0x64]
mov word [esp + 0x9c], dx
push ecx
mov word [esp + 0xa2], ax
call fcn.00408470
cmp eax, 1
mov eax, dword [esp + 0x214]
setle dl
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0xa4], dl
lea eax, [esp + 0x68]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.004083b0
mov ax, word [esp + 0x74]
mov cx, word [esp + 0x78]
mov dx, word [esp + 0x7c]
mov word [esp + 0xc8], ax
mov ax, word [esp + 0x80]
mov word [esp + 0xca], cx
mov cx, word [esp + 0x84]
mov word [esp + 0xce], ax
mov word [esp + 0xcc], dx
mov dx, word [esp + 0x88]
lea eax, [esp + 0x74]
mov word [esp + 0xd0], cx
push eax
mov word [esp + 0xd6], dx
call fcn.00408470
add esp, 0x20
cmp eax, 1
setle cl
lea edx, [esp + 0x130]
mov byte [esp + 0xb8], cl
mov dword [esp + 0xa4], edx
lea ecx, [esp + 0x130]
push ebx
lea edx, [esp + 0x7c]
lea eax, [esp + 0x134]
push ecx
push edx
lea ecx, [esp + 0x1e8]
mov byte [esp + 0xc6], 0
mov byte [esp + 0xa2], 0
mov byte [esp + 0xc5], 1
mov byte [esp + 0xa1], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x90], ebx
call fcn.004233f0
lea ecx, [esp + 0x1dc]
call fcn.00424820
lea ecx, [esp + 0x130]
call fcn.00421bb0
lea eax, [esp + 0xd8]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x30]
call fcn.00469b10
lea ecx, [esp + 0x1dc]
call fcn.00423170
lea ecx, [esp + 0xd8]
call fcn.00462f80
jmp 0x4204f4
mov eax, dword [esp + 0xfd4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x420b4f
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
mov edx, dword [ebp + 0x30]
push 1
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
pop ebp
add esp, 0xfc0
ret 4