Function at 0x435770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x520478
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
push ebp
lea eax, [esp + 0x3c]
push eax
mov byte [esi + 0x197], 1
call fcn.00432040
mov ecx, dword [esi + 0x48]
mov edi, dword [esp + 0x3c]
movzx edx, word [esi + 0x5e]
mov eax, dword [eax]
push 0
push 0x433f80
push esi
push ecx
push edi
push 1
push edx
push eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x50], 0
call eax
cmp ax, 1
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4359b8
mov byte [esi + 0x197], 0
cmp dword [edi], 0
jne 0x4358eb
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esi + 0x197], 1
call fcn.00432040
mov edx, dword [esi + 0x48]
mov eax, dword [eax]
push 0
push 0x433f80
push esi
push edx
push edi
push 1
push 0x10
push eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x50], 1
call eax
mov eax, dword [esp + 0x38]
or ebx, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x30], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43587f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esi + 0x197], 0
cmp dword [edi], 0
jne 0x4358eb
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
mov byte [esi + 0x197], 1
call fcn.00432040
mov edx, dword [esi + 0x48]
mov eax, dword [eax]
push 0
push 0x433f80
push esi
push edx
push edi
push 1
push 4
push eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x50], 2
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4358e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esi + 0x197], 0
fld dword [0x53295c]
fstp dword [esp + 0x38]
call fcn.004b9d4c
test eax, eax
je 0x435909
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x43590b
xor eax, eax
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004c82c8
mov ebx, eax
test ebx, ebx
je 0x43595d
mov edx, dword [ebx + 8]
push 0x58
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp dword [esp + 0x38]
call fcn.004b9d4c
test eax, eax
je 0x43594d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x43594f
xor eax, eax
mov ecx, dword [ebx + 4]
mov edx, dword [eax + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x10]
fld dword [esp + 0x38]
lea ecx, [esp + 0x14]
fstp dword [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x124]
mov dword [esp + 0x1c], eax
call fcn.00431180
mov eax, dword [edi]
push eax
mov ecx, esi
call fcn.0042da90
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x6c], 1
mov bl, al
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
sete dl
push ecx
lea ecx, [esi + 0x148]
mov byte [esp + 0x20], dl
call fcn.00431240
mov al, bl
jmp 0x4359c1
mov dword [esi + 0x44], 3
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8