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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
jl 0x452a2a
cmp eax, dword [edi + 0x3b8]
jge 0x452a2a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
sub ecx, 3
mov dword [esp + 0x28], eax
add eax, 2
mov ebp, ecx
sub ebp, eax
test ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jle 0x452a20
mov ebp, dword [esp + 0x50]
cmp dword [ebp + 0x14], 1
mov dword [esp + 0x3c], ebx
lea ebx, [eax + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x40], ebx
mov ebx, 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
jle 0x452451
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 0x14], ebx
mov dword [esp + 0x20], ebp
je 0x4523bc
lea esp, [esp]
mov ebp, dword [ebp + 4]
cmp dword [ebp + 0x14], ebx
jne 0x4523b0
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x18]
add ebp, ebx
lea ebx, [ebp + 0x10]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x10], 0
mov ebx, dword [esp + 0x14]
je 0x452434
cmp ebx, 1
jne 0x4523ec
test dword [edi + 0xa4], 0x20000
je 0x452434
sub esp, 0x10
mov ebx, esp
mov dword [ebx], ebp
mov ebp, dword [esp + 0x4c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x54]
mov dword [ebx + 0xc], ebp
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 4], eax
push 9
mov dword [ebx + 8], ecx
push edi
mov dword [ebx + 0xc], edx
call fcn.00452eb0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x50]
add dword [esp + 0x18], 0x10
add ebx, 1
cmp ebx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
jl 0x4523a3
mov ebx, dword [esp + 0x18]
mov ebp, dword [edi + 0xa4]
test ebp, 0x50000
je 0x452615
mov ebp, dword [esp + 0x58]
add ebx, ebp
lea ebp, [ebx + 0x10]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x50]
cmp dword [ebp + 0x14], 1
mov dword [esp + 0x38], ebx
jne 0x4524ec
test dword [edi + 0xa4], 0x20000
je 0x452496
cmp dword [ebp + 0xc], 0
jne 0x4524bc
cmp dword [ebp + 0x10], 0
jne 0x4524bc
sub esp, 0x10
mov ebp, esp
mov dword [ebp], ebx
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x54]
sub esp, 0x10
mov dword [ebp + 0xc], ebx
mov ebp, esp
push 4
jmp 0x45251f
mov ebp, dword [esp + 0x50]
cmp dword [ebp + 0xc], 0
jne 0x4524ec
sub esp, 0x10
mov ebp, esp
mov dword [ebp], ebx
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x54]
sub esp, 0x10
mov dword [ebp + 0xc], ebx
mov ebp, esp
push 0xc
jmp 0x45251f
sub esp, 0x10
cmp dword [ebp + 0x10], 0
mov ebp, esp
mov dword [ebp], ebx
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x54]
mov dword [ebp + 0xc], ebx
jne 0x452518
sub esp, 0x10
mov ebp, esp
push 5
jmp 0x45251f
sub esp, 0x10
mov ebp, esp
push 0xd
mov dword [ebp], eax
mov eax, dword [esp + 0x50]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
push edi
mov dword [ebp + 0xc], edx
call fcn.00452eb0
test dword [edi + 0xa4], 0x40000
je 0x452602
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x20]
test al, 4
je 0x4525be
cmp dword [ecx + 8], 0
je 0x452602
sub esp, 0x10
test al, 2
mov eax, esp
je 0x452583
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
sub esp, 0x10
mov dword [eax + 0xc], ebx
mov eax, esp
push 2
jmp 0x4525e1
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [eax], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push 1
jmp 0x4525fc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
sub esp, 0x10
mov dword [eax + 0xc], ebx
mov eax, esp
push 4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push edi
call fcn.00453010
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add ebx, 0x10
test dword [edi + 0xa4], 0x80000
je 0x452717
mov ebp, dword [esp + 0x50]
test byte [ebp + 0x20], 0x10
je 0x452717
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebx]
lea eax, [ecx + 0x10]
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, ebp
sub eax, 0x10
mov dword [esp + 0x44], edx
cdq
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ecx
sub eax, edx
mov ebp, eax
lea ecx, [esp + 0x28]
push ecx
sar ebp, 1
add ebp, dword [esp + 0x40]
mov ecx, esi
call fcn.0046e0e8
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0046e0e8
mov eax, dword [esp + 0x50]
cmp eax, dword [edi + 0x434]
mov ecx, 1
je 0x4526a0
cmp eax, dword [edi + 0x43c]
jne 0x4526a5
mov ecx, 3
mov eax, dword [eax + 0x20]
mov edx, eax
and edx, 0x30000
cmp edx, 0x30000
jne 0x4526c2
mov dword [esp + 0x20], 2
jmp 0x4526cc
shr eax, 0x10
and eax, 1
mov dword [esp + 0x20], eax
test esi, esi
jne 0x4526d4
xor edx, edx
jmp 0x4526d7
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x394]
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
call fcn.0046915a
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004479c0
mov ecx, dword [esi + 4]
push 5
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add ebx, 0x10
test dword [edi + 0xa4], 0x100000
je 0x452819
mov ebp, dword [esp + 0x50]
test byte [ebp + 0x20], 0x20
je 0x452819
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebx]
lea eax, [ecx + 8]
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, ebp
sub eax, 0x10
mov dword [esp + 0x44], edx
cdq
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ecx
sub eax, edx
mov ebp, eax
lea ecx, [esp + 0x28]
push ecx
sar ebp, 1
add ebp, dword [esp + 0x40]
mov ecx, esi
call fcn.0046e0e8
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0046e0e8
mov eax, dword [esp + 0x50]
cmp eax, dword [edi + 0x434]
mov ecx, 1
je 0x4527a2
cmp eax, dword [edi + 0x43c]
jne 0x4527a7
mov ecx, 3
mov eax, dword [eax + 0x20]
mov edx, eax
and edx, 0x3000000
cmp edx, 0x3000000
jne 0x4527c4
mov dword [esp + 0x20], 2
jmp 0x4527ce
shr eax, 0x18
and eax, 1
mov dword [esp + 0x20], eax
test esi, esi
jne 0x4527d6
xor edx, edx
jmp 0x4527d9
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x39c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
call fcn.0046915a
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004479c0
mov ecx, dword [esi + 4]
push 5
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add ebx, 8
test dword [edi + 0xa4], 0x200000
je 0x452972
mov ebp, dword [esp + 0x50]
test byte [ebp + 0x20], 0x40
je 0x452972
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
lea ecx, [eax + ebx]
lea eax, [ecx + 0x10]
mov dword [esp + 0x40], eax
mov eax, edx
sub eax, ebp
sub eax, 0x10
mov dword [esp + 0x44], edx
cdq
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], ecx
sub eax, edx
mov ebp, eax
lea ecx, [esp + 0x28]
push ecx
sar ebp, 1
add ebp, dword [esp + 0x40]
mov ecx, esi
call fcn.0046e0e8
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0046e0e8
mov eax, dword [esp + 0x50]
cmp eax, dword [edi + 0x434]
mov edx, 1
je 0x4528a4
cmp eax, dword [edi + 0x43c]
jne 0x4528a9
mov edx, 3
test byte [eax + 0x20], 2
je 0x4528fc
cmp dword [eax + 8], 0
je 0x4528fc
cmp dword [edi + 0x3f4], 0
jle 0x4528e2
mov ecx, dword [edi + 0x3f0]
cmp eax, dword [ecx]
jne 0x4528e2
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x34]
push ebp
push ecx
mov ecx, dword [edi + 0x3a8]
push eax
push ecx
mov eax, esi
call fcn.00447980
jmp 0x452961
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
push ebp
push ecx
mov ecx, dword [edi + 0x3a8]
push eax
push ecx
mov eax, esi
call fcn.00447980
jmp 0x452961
cmp dword [edi + 0x3f4], 0
jle 0x452929
mov ecx, dword [edi + 0x3f0]
cmp eax, dword [ecx]
jne 0x452929
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
push ebp
push ecx
mov ecx, dword [edi + 0x3a8]
push eax
push ecx
mov eax, esi
call fcn.00447980
jmp 0x452961
test esi, esi
mov eax, dword [eax + 0x28]
mov ecx, dword [edi + 0x3a8]
mov dword [esp + 0x20], eax
jne 0x45293e
xor eax, eax
jmp 0x452941
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 4]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.0046915a
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.004479c0
mov edx, dword [esi + 4]
push 5
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
add ebx, 0x10
test dword [edi + 0xa4], 0x300000
je 0x452981
add ebx, 2
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
add ebx, ebp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x68]
push esi
push edi
mov dword [esp + 0x54], ebp
call fcn.00453330
test dword [edi + 0xa4], 0x800
je 0x4529e8
mov ebx, dword [esp + 0x64]
add ebx, 0xffffffff
push ebx
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0046e400
mov edx, dword [esp + 0x60]
push ebx
add edx, 0xffffffff
push edx
mov ecx, esi
call fcn.0046e12a
test dword [edi + 0xa4], 0x400
je 0x452a20
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
add eax, 0xffffffff
push eax
add edi, 0xffffffff
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0046e400
mov edx, dword [esp + 0x5c]
add edx, 0xffffffff
push edx
push edi
mov ecx, esi
call fcn.0046e12a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
call fcn.004671bb
int3