Function at 0x40b8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d13f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004ada9c
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov ecx, edi
call fcn.00408c40
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
mov eax, dword [ebx]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.0040a640
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x10]
test eax, eax
mov eax, dword [ebx + 0x10]
je 0x40b9d5
cmp edx, eax
jne 0x40b9ae
mov edx, dword [esi + 0x24]
fld qword [ecx + 0x10]
fcomp qword [edx + 0x38]
fnstsw ax
test ah, 1
je 0x40b9a8
fld qword [ecx + 0x10]
jmp 0x40b9ab
fld qword [edx + 0x38]
fstp qword [ecx + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jne 0x40ba1c
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
fld qword [ecx + 8]
fcomp qword [edx + 0x30]
fnstsw ax
test ah, 0x41
jne 0x40b9d0
fld qword [ecx + 8]
jmp 0x40ba19
fld qword [edx + 0x30]
jmp 0x40ba19
cmp edx, eax
jne 0x40b9f4
mov edx, dword [esi + 0x24]
fld qword [ecx + 0x10]
fcomp qword [edx + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40b9ee
fld qword [ecx + 0x10]
jmp 0x40b9f1
fld qword [edx + 0x20]
fstp qword [ecx + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jne 0x40ba1c
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
fld qword [ecx + 8]
fcomp qword [edx + 0x28]
fnstsw ax
test ah, 1
je 0x40ba16
fld qword [ecx + 8]
jmp 0x40ba19
fld qword [edx + 0x28]
fstp qword [ecx + 8]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + 0x10]
cmp ecx, eax
jne 0x40ba39
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x40ba54
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0xc]
cmp edx, eax
jne 0x40ba54
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x34]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
call fcn.004a4e34
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push esi
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x70], 0
call fcn.0040af80
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.004a4e67
mov ecx, dword [esp + 0x48]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14