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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7bb6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4e70ac]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0x54]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebx
test edi, edi
jne 0x48d1e2
xor eax, eax
jmp 0x48d1e5
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48d7f7
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004a8a57
mov edx, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x303
push edx
call edi
cmp dword [esi + 0xac], 0
jne 0x48d236
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0x74]
push eax
push 0
push 0xc2
push ecx
call edi
jmp 0x48d7f7
lea ecx, [esp + 0x54]
call fcn.0048d070
mov ecx, dword [esi + 0xac]
xor edi, edi
mov dword [esp + 0x1d8], edi
call fcn.0048f270
cmp eax, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
jle 0x48d704
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00497b80
mov edi, eax
mov ecx, edi
mov dword [esp + 0x48], edi
call fcn.0048f270
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push 0x5a
mov eax, 1
push ecx
mov dword [esp + 0x94], 0xbc
mov dword [esp + 0x98], 0x108
mov word [esp + 0xac], ax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, dword [esi + 0xb0]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x38], ecx
jge 0x48d2d6
mov byte [esp + 0x136], bl
mov dword [esp + 0x130], ebx
jmp 0x48d2ee
imul eax, eax, 0x5a0
cdq
idiv ecx
mov byte [esp + 0x136], 4
mov dword [esp + 0x130], eax
cmp dword [esp + 0x18], 0
jle 0x48d34c
push ebx
mov ecx, edi
call fcn.00497b80
mov ecx, eax
call fcn.0048c170
and eax, 7
jne 0x48d312
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x48d2f5
jmp 0x48d34c
sub eax, 1
je 0x48d33f
sub eax, 1
je 0x48d330
sub eax, 2
jne 0x48d34c
mov edx, 1
mov word [esp + 0xa4], dx
jmp 0x48d34c
mov eax, 2
mov word [esp + 0xa4], ax
jmp 0x48d34c
mov ecx, 3
mov word [esp + 0xa4], cx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esi + 0x54]
call fcn.004a8a82
cmp dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
jle 0x48d6d7
jmp 0x48d375
mov edi, dword [esp + 0x48]
call fcn.0041bd92
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x48d7ca
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov byte [esp + 0x1dc], 1
call fcn.00497b80
mov edi, eax
mov ecx, edi
mov dword [esp + 0x14c], 0x74
mov dword [esp + 0x150], 0xc0000007
mov dword [esp + 0x154], 0
call fcn.0048f270
imul eax, eax, 0x5a0
xor edx, edx
div dword [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x158], eax
call fcn.00497690
mov ecx, edi
mov dword [esp + 0x160], eax
call fcn.0048bb40
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea ebx, [eax - 0x10]
mov dword [esp + 0x10], edx
cmp ebx, edx
je 0x48d4c3
cmp dword [edx + 0xc], 0
jl 0x48d4b5
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x48d4b5
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x48d44a
cmp eax, dword [ebx]
jne 0x48d44a
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x48d48b
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x48d7d4
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 4]
lea edx, [ecx + ecx + 2]
push edx
add ebx, 0x10
push ebx
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.00435b6f
mov ebx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x10]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x48d4ac
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x48d4c3
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404240
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x48d4f1
push 0x20
push eax
lea ecx, [esp + 0x16e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
or dword [esp + 0x150], 0x20000000
mov byte [esp + 0x165], 0
mov ecx, edi
call fcn.0048c170
test al, 0x10
je 0x48d504
or dword [esp + 0x154], 1
test al, 0x20
je 0x48d510
or dword [esp + 0x154], 2
test al, 0x40
je 0x48d51c
or dword [esp + 0x154], 4
mov ecx, edi
call fcn.004976a0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x24]
push edx
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
push 0x434
push eax
call ebx
mov ecx, edi
call fcn.00491490
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
push eax
push 0
push 0xc2
push ecx
call ebx
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x24]
push edx
push 0
push 0x437
push eax
mov dword [esp + 0x38], 0xffffffff
call ebx
mov edx, dword [esi + 0x74]
lea ecx, [esp + 0x14c]
push ecx
push 1
push 0x444
push edx
call ebx
cmp dword [esp + 0x10], 0
jbe 0x48d690
cmp dword [esp + 0x34], 0
je 0x48d690
cmp dword [esp + 0x1c], 0
je 0x48d690
mov ecx, dword [esi + 0x74]
lea eax, [esp + 0x24]
push eax
push 0
push 0x434
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x74]
push edx
push 0
push 0x436
push eax
call ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
push ecx
push 0
push 0x436
push edx
mov dword [esp + 0x54], eax
call ebx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0xd6
push edx
call ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x74]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0xd6
push edx
call ebx
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], eax
jne 0x48d690
mov eax, dword [esi + 0xb0]
test eax, eax
jg 0x48d62d
mov ecx, edi
call fcn.0048f270
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x10]
sub ecx, edx
add ecx, edx
add eax, edi
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], ebx
lea ebx, [eax + 4]
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x80], edx
mov edx, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], edi
call fcn.0048cfe0
push 1
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.0048d0e0
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esi + 0x54]
call fcn.004a8a57
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1d8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48d6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jl 0x48d371
mov ecx, dword [esi + 0x74]
push 0x4bee0c
push 0
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
jl 0x48d263
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x48d7e1
test ebx, ebx
je 0x48d7e1
mov eax, dword [esp + 0x6c]
mov dword [ecx], eax
mov dword [ebx], 0
test eax, eax
jbe 0x48d7e1
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418b51
mov esi, dword [esp + 0x58]
mov dword [ebx], eax
mov eax, dword [esp + 0x6c]
mov edi, dword [eax]
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
test esi, esi
je 0x48d765
cmp esi, dword [esp + 0x54]
je 0x48d76a
call fcn.00436578
cmp edi, dword [esp + 0x50]
je 0x48d7e1
test esi, esi
jne 0x48d7d9
call fcn.00436578
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x48d789
call fcn.00436578
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [edi + 8]
add eax, ebx
mov dword [eax], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x18]
add ebx, 0x14
mov dword [eax + 0x10], ecx
test esi, esi
jne 0x48d7dd
call fcn.00436578
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x48d7c6
call fcn.00436578
mov edi, dword [edi]
jmp 0x48d753
push 0x80004005
call fcn.004010d0
call fcn.004016d0
mov eax, dword [esi]
jmp 0x48d77f
mov eax, dword [esi]
jmp 0x48d7bc
lea ecx, [esp + 0x54]
call fcn.0048cf90
mov edx, dword [esp + 0x54]
push edx
call fcn.00418b46
add esp, 4
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0043640c
mov esp, ebp
pop ebp
ret 0xc