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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4c1830]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x11248]
push edi
mov dword [esp + 0x78], eax
call fcn.004503c0
mov edi, eax
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x445a31
mov eax, dword [esp + 0x90]
push eax
mov ecx, edi
call fcn.004682b0
push 0xffffffffffffffff
mov ecx, edi
call fcn.004682a0
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
mov ecx, dword [edi + 0x168]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x80], ebp
mov ebp, dword [edi + 0x164]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shr ebx, 2
and bl, 1
test eax, eax
mov dword [esp + 0x10], ecx
je 0x445a83
mov eax, dword [esi + 0x1133c]
mov dword [esi + 0x11340], eax
jmp 0x445a8f
mov ecx, dword [esi + 0x11338]
mov dword [esi + 0x11340], ecx
mov ecx, dword [esi + 0x11340]
call fcn.00457130
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea eax, [esp + 0x58]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
push edi
mov dword [esp + 0x44], edx
call fcn.00408c40
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
xor ecx, ecx
add esp, 8
cmp eax, ecx
mov dword [edi + 0x330], 0xffffffff
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jge 0x445b01
mov dword [esp + 0x90], 1
mov eax, dword [esp + 0x88]
test al, 1
je 0x445b22
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x88]
push eax
push ecx
call fcn.00409060
add esp, 0xc
test bl, bl
je 0x445b66
lea ebx, [ebp + 0xc]
mov dword [esp + 0x88], 0x40
mov ecx, dword [ebx]
test ecx, ecx
je 0x445b4c
call fcn.0048d853
mov ecx, dword [ebx]
test ecx, ecx
je 0x445b4c
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x88]
mov dword [ebx], 0
add ebx, 4
dec eax
mov dword [esp + 0x88], eax
jne 0x445b34
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x88], eax
fild dword [esp + 0x88]
fmul qword [0x4989d8]
call fcn.004757c4
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x84], ebp
call dword [edx + 0x50]
mov edx, dword [eax]
xor ebx, ebx
push ebx
mov ecx, eax
call dword [edx + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x38], eax
mov edx, dword [ecx]
call dword [edx + 0x50]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x8c]
mov dword [edi + 0x3c], eax
mov dword [ecx], ebx
cmp dword [esi + 0x11340], ebx
mov byte [esp + 0x88], bl
je 0x445d52
jmp 0x445c00
mov ecx, dword [esi + 0x11340]
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x445c83
mov al, byte [esp + 0x88]
mov ecx, dword [esi + 0x11340]
test al, al
mov eax, dword [ecx]
je 0x445c35
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push edi
call dword [eax + 0x12c]
jmp 0x445c74
mov ebp, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x1c]
push edx
push edi
call dword [eax + 0x128]
mov ecx, ebp
call fcn.0043d2d0
mov ecx, dword [esp + 0x24]
lea ebx, [eax + ecx]
mov ecx, ebp
call fcn.0043d2c0
cmp eax, ebx
jge 0x445c72
mov ecx, ebp
call fcn.0043d2d0
add eax, dword [esp + 0x24]
push eax
mov ecx, ebp
call fcn.0043c5f0
xor ebx, ebx
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x90], ebx
mov eax, dword [esp + 0x1c]
je 0x445ca9
cmp eax, dword [edi + 0x24]
jle 0x445ca9
add eax, ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 0xc]
jg 0x445d3d
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x88]
test al, al
jne 0x445cf6
mov ecx, dword [esi + 0x11340]
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x445cf6
mov ecx, dword [esi + 0x11340]
call fcn.00425a90
test eax, eax
je 0x445cec
mov ecx, dword [esi + 0x11340]
call fcn.00425a90
jmp 0x445d29
mov byte [esp + 0x88], 1
jmp 0x445d2f
mov ecx, dword [esi + 0x11340]
call fcn.004570f0
test eax, eax
mov ecx, dword [esi + 0x11340]
je 0x445d1a
call fcn.004570f0
mov byte [esp + 0x88], 0
jmp 0x445d29
push 1
call fcn.004570c0
mov byte [esp + 0x88], 1
mov dword [esi + 0x11340], eax
cmp dword [esi + 0x11340], ebx
jne 0x445c00
jmp 0x445d52
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov dword [ecx], 1
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
pop edi
sub eax, esi
cmp eax, ecx
pop esi
pop ebp
pop ebx
jg 0x445d6d
mov eax, ecx
mov ecx, dword [esp + 0x68]
call fcn.0047471e
add esp, 0x6c
ret 0x14