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

Disassembly:
sub esp, 0xf9c
mov eax, dword [esp + 0xfa0]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x30], edi
je 0x4292bb
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_BeginPath]
mov edx, dword [edi + 0x28]
xor ebp, ebp
cmp edx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
je 0x4299e0
mov eax, dword [esp + 0x14]
mov ebx, 0xffffffdc
xor ecx, ecx
sub ebx, edx
lea esi, [eax*4]
lea eax, [edx + 0x24]
mov dword [esp + 0x7c], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x429313
test ebp, ebp
je 0x429301
mov ebp, dword [esi + ebp + 0x24]
mov ebx, dword [ebx + 0xc]
cmp ebx, dword [ebp + 0xc]
jae 0x42930f
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], ecx
add esi, eax
mov ebp, dword [esp + 0x34]
inc ecx
add eax, 4
cmp ecx, 2
jl 0x4292eb
mov edx, dword [edx]
test edx, edx
jne 0x4292d0
test ebp, ebp
je 0x4299e0
cmp dword [esp + 0x14], 1
jne 0x42933d
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], eax
mov edx, dword [ebp + 0x30]
mov ebx, dword [ebp + 0x24]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [esp + 0x14], ebx
mov dword [edi + 0x20], eax
je 0x42935a
push 2
jmp 0x42935c
push 1
mov edx, dword [edi + 0x34]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov eax, dword [esp + 0xfb0]
test eax, eax
jne 0x429387
mov edx, dword [edi + 0x34]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_BeginPath]
lea edx, [esp + 0x20]
push edx
call fcn.0041d980
add esp, 4
mov esi, ebp
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 0x34]
mov ecx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx + 0x48]
push ecx
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_MoveToEx]
test esi, esi
je 0x42947d
lea edx, [esp + 0x20]
lea ebx, [esi + 8]
push edx
push ebx
call fcn.0041dc30
lea eax, [esp + 0x28]
lea ecx, [esi + 0x10]
push eax
push ecx
call fcn.0041dc30
lea edx, [esp + 0x30]
lea ebp, [esi + 0x18]
push edx
push ebp
call fcn.0041dc30
mov eax, dword [esi + 0x20]
add esp, 0x18
test eax, eax
je 0x429406
mov eax, dword [esi + 0x1c]
mov edx, dword [edi + 0x34]
mov ecx, dword [ebp]
push eax
mov eax, dword [edx + 0x48]
push ecx
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
jmp 0x429457
lea edx, [esp + 0xe0]
push edx
push ebx
call fcn.0040bbc0
mov ecx, dword [edi + 0x34]
add esp, 8
xor eax, eax
mov edx, dword [esp + eax + 0xe8]
mov dword [esp + eax + 0xc8], edx
mov edx, dword [esp + eax + 0xec]
mov dword [esp + eax + 0xcc], edx
add eax, 8
cmp eax, 0x18
jl 0x42941c
mov ecx, dword [ecx + 0x48]
lea eax, [esp + 0xc8]
push 3
push eax
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_PolyBezierTo]
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, edi
mov dword [esi + 0x24], 0
call fcn.004291b0
mov esi, eax
test esi, esi
jne 0x4293b8
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
push 0
push ebx
mov ecx, edi
call fcn.004291b0
mov esi, eax
test esi, esi
jne 0x429396
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.GDI32.dll_EndPath]
mov eax, dword [esp + 0xfb0]
test eax, eax
jne 0x4292bb
mov al, byte [ebx + 0x14]
test al, al
je 0x4294c1
cmp word [ebx + 0x26], si
je 0x4292bb
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], edx
call fcn.004290e0
mov ebp, dword [ebp + 0x2c]
add esp, 4
test ebp, ebp
je 0x429500
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x34]
push edx
push eax
push ebp
call fcn.00485540
jmp 0x4292bb
mov bl, byte [ebx + 0x16]
test bl, bl
jne 0x429523
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x34]
push edx
push eax
call fcn.004855d0
jmp 0x4292bb
cmp bl, 1
mov ebp, 2
jne 0x429563
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + 0x34]
mov ecx, dword [esp + 0x20]
sub edx, ecx
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov ebx, edx
mov ecx, ebp
sar ebx, cl
cmp ebx, esi
jl 0x429560
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ebx, ecx
mov ecx, ebp
sar ebx, cl
cmp ebx, eax
jge 0x429563
dec ebp
jne 0x429544
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x34]
push edx
mov esi, 0x18
mov byte [esp + 0x17], 0
call fcn.004856b0
test al, al
je 0x429588
mov esi, 0x20
mov byte [esp + 0x13], 1
push 0x38
call fcn.0041ed90
add esp, 4
test eax, eax
je 0x4292bb
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov ecx, ebp
sar edx, cl
mov ecx, dword [esp + 0x20]
push 0
push 7
push 0
push esi
push edx
mov edx, dword [esp + 0x38]
sub edx, ecx
mov ecx, ebp
sar edx, cl
mov ecx, dword [edi + 0x30]
push edx
push ecx
mov ecx, eax
call fcn.0047dee0
mov ebx, eax
test ebx, ebx
je 0x4292bb
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x429649
mov ebp, 3
test ebx, ebx
je 0x4295f4
mov ecx, ebx
call fcn.0047df20
push ebx
call fcn.0041eda0
add esp, 4
push 0x38
call fcn.0041ed90
add esp, 4
test eax, eax
je 0x4296f4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov ecx, ebp
sar edx, cl
mov ecx, dword [esp + 0x20]
push 0
push 7
push 0
push esi
push edx
mov edx, dword [esp + 0x38]
sub edx, ecx
mov ecx, ebp
sar edx, cl
mov ecx, dword [edi + 0x30]
push edx
push ecx
mov ecx, eax
call fcn.0047dee0
mov ebx, eax
test ebx, ebx
je 0x429643
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x429649
inc ebp
cmp ebp, 7
jl 0x4295e0
test ebx, ebx
je 0x4292bb
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4299cb
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x1b0]
mov eax, dword [edx + 0x1108]
push eax
call fcn.0042c280
push 1
push 0
push ebx
lea ecx, [esp + 0x1bc]
call fcn.0042c3e0
lea ecx, [esp + 0x1b0]
call fcn.0042c510
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x104]
call fcn.0042add0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x124], eax
mov al, byte [ecx + 0x16]
mov dword [esp + 0x10c], 0
cmp al, 2
mov dword [esp + 0x120], edx
jne 0x4296fb
lea esi, [ecx + 0x30]
mov ecx, 0x19
lea edi, [esp + 0x130]
mov byte [esp + 0x116], al
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x190], 0
jmp 0x429717
xor ebx, ebx
jmp 0x429643
cmp al, 1
jne 0x42971b
lea esi, [ecx + 0x30]
mov ecx, 0x20
lea edi, [esp + 0x130]
mov byte [esp + 0x116], al
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
lea esi, [edi + 4]
mov ecx, 6
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
sub eax, edx
mov edx, dword [esp + 0x5c]
sub edx, ecx
mov ecx, ebp
sar edi, cl
sar esi, cl
sar edx, cl
sar eax, cl
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
sar edi, cl
sar esi, cl
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], edx
push ecx
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x58], esi
xor esi, esi
mov edx, dword [edi]
push esi
push esi
push edx
mov dword [esp + 0x68], eax
call fcn.00449150
lea ecx, [esp + 0x100]
lea eax, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x370], eax
call fcn.004492a0
lea ecx, [esp + 0x2ec]
call fcn.00449250
mov eax, dword [esp + 0x1dc]
mov ecx, dword [esp + 0x1e0]
lea edx, [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1d4]
mov dword [esp + 0x80], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0xb0], esi
call fcn.0040b840
mov dx, word [esp + 0x6c]
mov ax, word [esp + 0x70]
mov cx, word [esp + 0x74]
mov word [esp + 0x9c], dx
mov dx, word [esp + 0x78]
mov word [esp + 0x9e], ax
mov ax, word [esp + 0x7c]
mov word [esp + 0xa2], dx
mov word [esp + 0xa0], cx
mov cx, word [esp + 0x80]
lea edx, [esp + 0x6c]
mov word [esp + 0xa4], ax
push edx
mov word [esp + 0xaa], cx
call fcn.0040b900
cmp eax, 1
setle al
mov byte [esp + 0xac], al
mov eax, dword [esp + 0x1e8]
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.0040b840
mov cx, word [esp + 0x7c]
mov dx, word [esp + 0x80]
mov ax, word [esp + 0x84]
mov word [esp + 0xd0], cx
mov cx, word [esp + 0x88]
mov word [esp + 0xd2], dx
mov dx, word [esp + 0x8c]
mov word [esp + 0xd6], cx
mov word [esp + 0xd4], ax
mov ax, word [esp + 0x90]
lea ecx, [esp + 0x7c]
mov word [esp + 0xd8], dx
push ecx
mov word [esp + 0xde], ax
call fcn.0040b900
add esp, 0x20
cmp eax, 1
setle dl
lea eax, [esp + 0x100]
mov byte [esp + 0xc0], dl
mov dword [esp + 0xac], eax
lea ecx, [esp + 0x100]
lea edx, [esp + 0x100]
push esi
lea eax, [esp + 0x84]
mov dword [esp + 0x8c], ecx
push edx
push eax
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xce], 0
mov byte [esp + 0xaa], 0
mov byte [esp + 0xcd], 1
mov byte [esp + 0xa9], 1
mov dword [esp + 0xbc], esi
mov dword [esp + 0x98], esi
call fcn.0042c600
lea ecx, [esp + 0x1b0]
call fcn.0042da30
lea ecx, [esp + 0x100]
call fcn.0042ae00
mov al, byte [esp + 0x13]
test al, al
je 0x4299ad
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x30]
push ecx
mov ecx, dword [edi + 0x34]
lea edx, [esp + 0x24]
push ebx
push edx
push eax
call fcn.004856d0
jmp 0x4299bb
lea ecx, [esp + 0x20]
push ebx
push ecx
mov ecx, dword [edi + 0x34]
call fcn.00485630
lea ecx, [esp + 0x1b0]
call fcn.0042c350
mov edi, dword [esp + 0x30]
mov ecx, ebx
call fcn.0047df20
push ebx
call fcn.0041eda0
add esp, 4
jmp 0x4292bb
mov eax, dword [esp + 0xfb0]
xor esi, esi
cmp eax, esi
je 0x429a0f
mov edx, dword [edi + 0x34]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_EndPath]
mov edx, dword [edi + 0x34]
push 1
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x429a3d
lea ebx, [edi + 0x3c]
mov esi, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.0041ec30
test esi, esi
mov eax, esi
jne 0x429a19
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf9c
ret 4
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf9c
ret 4