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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cb25f
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x2cc
mov eax, dword [eax + 8]
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x452b6a
mov ebx, dword [esp + 0x2ec]
lea ebp, [ebx + 0x38]
push ebp
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov esi, eax
mov ecx, 0x10
neg esi
sbb esi, esi
xor eax, eax
lea edi, [esp + 0x34]
inc esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x2f0]
stosw word es:[edi], ax
mov eax, esi
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 8]
mov edi, 1
neg eax
sbb eax, eax
mov dword [esp + 0x34], 0x42
and al, 0xfd
add eax, 4
or eax, 0x40100
cmp ecx, edi
mov dword [esp + 0x48], eax
jne 0x45271c
test ecx, ecx
jle 0x45268a
mov edx, dword [edx + 4]
mov eax, dword [edx]
jmp 0x45268c
xor eax, eax
push eax
lea ecx, [esp + 0x184]
call fcn.00459cd0
lea ecx, [esp + 0x180]
mov dword [esp + 0x2e4], 0
call fcn.0045c970
lea ecx, [esp + 0x180]
call fcn.0045cb60
cmp eax, edi
jle 0x452701
lea ecx, [esp + 0x180]
mov word [esp + 0x50], di
mov word [esp + 0x4c], di
call fcn.0045cb60
mov word [esp + 0x52], ax
mov word [esp + 0x4e], ax
mov eax, dword [ebx + 0x50]
test eax, eax
jl 0x452701
inc ax
test esi, esi
mov word [esp + 0x4e], ax
mov word [esp + 0x4c], ax
jne 0x452701
mov eax, dword [esp + 0x48]
or al, 2
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x180]
mov dword [esp + 0x2e4], 0xffffffff
call fcn.00459f00
mov eax, dword [esp + 0x48]
cmp word [esp + 0x4c], di
jb 0x45272a
cmp word [esp + 0x4e], di
jae 0x452730
or al, 8
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x4527c9
lea eax, [esp + 0x1dc]
push 0x100
push eax
push 0x4e23c4
push str.device
push str.windows
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
lea ecx, [esp + 0x1dc]
push 0x4e23b0
push ecx
call fcn.004bf9e5
mov edi, eax
add esp, 8
test edi, edi
je 0x4527ad
push 0x4e0870
push 0
call fcn.004bf9e5
mov esi, eax
add esp, 8
test esi, esi
je 0x4527ad
push 0x4e0870
push 0
call fcn.004bf9e5
add esp, 8
test eax, eax
je 0x4527ad
push 0
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
jmp 0x4527af
xor eax, eax
mov dword [esp + 0x44], eax
mov edi, 1
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
jne 0x4527dc
xor eax, eax
jmp 0x452b6a
lea edx, [esp + 0x34]
push edx
call sub.comdlg32.dll_PrintDlgA
test eax, eax
jne 0x4527b8
jmp 0x452b6a
mov al, byte [esp + 0x48]
test al, 1
je 0x452805
mov eax, dword [ebx + 0x50]
cmp eax, esi
jl 0x4527f9
inc ax
mov word [esp + 0x4e], ax
mov word [esp + 0x4c], ax
jmp 0x45282c
mov word [esp + 0x4e], di
mov word [esp + 0x4c], di
jmp 0x45282c
test al, 2
push ebp
je 0x452812
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x45282c
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ax, word [esp + 0x50]
mov cx, word [esp + 0x52]
mov word [esp + 0x4c], ax
mov word [esp + 0x4e], cx
push 0x80
mov dword [esp + 0x18], 0x4cc9f4
call fcn.004be967
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x1f
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2e4], edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x2f0]
mov dword [esp + 0x30], esi
mov eax, dword [edi + 8]
test eax, eax
jle 0x452972
push 0x5c
call fcn.004be967
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x2e4], 2
je 0x4528c1
cmp esi, dword [edi + 8]
jge 0x4528b1
test esi, esi
jl 0x4528b1
mov edx, dword [edi + 4]
mov ecx, eax
mov edx, dword [edx + esi*4]
push edx
call fcn.00459cd0
mov dword [esp + 0x10], eax
jmp 0x4528c9
xor edx, edx
mov ecx, eax
push edx
call fcn.00459cd0
mov dword [esp + 0x10], eax
jmp 0x4528c9
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x2e4], 1
test eax, eax
je 0x452962
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x45294a
mov edx, dword [esp + 0x28]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004be975
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x2f8]
add esp, 8
add eax, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jl 0x45287a
mov edx, dword [esp + 0x4e]
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x4c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [ebx + 0x48]
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edx
mov edx, dword [ebx + 0x3c]
sub esp, 0x10
lea edi, [ebx + 8]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 0x40]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0xac]
call fcn.0044d450
mov eax, dword [ebx + 0x54]
mov byte [esp + 0x2e4], 3
test eax, eax
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x78]
je 0x452a16
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
push ecx
push 0x44d390
push edx
push 0x1f8
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [esp + 0x10], ecx
jmp 0x452a1b
call fcn.0044ec50
mov eax, dword [esp + 0x10]
mov ecx, 0xc
lea esi, [esp + 0x78]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x452a3b
lea ecx, [esp + 0x78]
call fcn.00451740
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xe4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
mov byte [esp + 0x2e8], 1
call esi
mov eax, dword [esp + 0xe8]
push eax
call esi
mov eax, dword [esp + 0x170]
mov dword [esp + 0x160], 0x4cca6c
test eax, eax
je 0x452af8
mov eax, dword [esp + 0x168]
xor ebx, ebx
test eax, eax
jle 0x452af8
cmp ebx, eax
jge 0x452af3
test ebx, ebx
jl 0x452af3
mov ecx, dword [esp + 0x164]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x452af3
mov eax, dword [esi + 0x10]
mov dword [esi], 0x4cca70
test eax, eax
je 0x452ada
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x452ada
cmp edi, eax
jge 0x452ad2
test edi, edi
jl 0x452ad2
mov edx, dword [esi + 4]
mov ebp, dword [edx + edi*4]
test ebp, ebp
je 0x452ad2
mov ecx, ebp
call fcn.00452b90
push ebp
call fcn.004be975
add esp, 4
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x452ab4
mov eax, dword [esi + 4]
push eax
call fcn.004be975
push esi
call fcn.004be975
mov eax, dword [esp + 0x170]
add esp, 8
inc ebx
cmp ebx, eax
jl 0x452a88
mov eax, dword [esp + 0x164]
push eax
call fcn.004be975
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov dword [esp + 0x2e4], 0xffffffff
mov dword [esp + 0x14], 0x4cc9f4
je 0x452b59
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x452b59
cmp edi, eax
jge 0x452b54
test edi, edi
jl 0x452b54
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x452b54
mov ecx, esi
call fcn.00459f00
push esi
call fcn.004be975
mov eax, dword [esp + 0x20]
add esp, 4
inc edi
cmp edi, eax
jl 0x452b31
mov edx, dword [esp + 0x18]
push edx
call fcn.004be975
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2d8
ret