Function at 0x4057c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45151c
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x4059e7
mov edi, dword [eax + 0xc0]
cmp edi, ebp
je 0x4059e7
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
push 0x18c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.00429112
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x405829
mov ecx, eax
call fcn.00410160
jmp 0x40582b
xor eax, eax
push 0x34
mov dword [esp + 0x40], 0xffffffff
mov dword [esi + 0x30], eax
call fcn.00429112
add esp, 4
mov dword [esp + 0x1c], eax
mov ebx, 1
cmp eax, ebp
mov dword [esp + 0x3c], ebx
je 0x40585a
mov ecx, eax
call fcn.00423260
jmp 0x40585c
xor eax, eax
mov edx, dword [esi + 0xc]
mov ecx, 0x100
push ecx
push ecx
push ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
push ebp
push edx
mov ecx, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esi + 0x2c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004232f0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00421210
push 0x3f800000
push ebp
lea ecx, [esp + 0x2c]
push 3
push ecx
mov ecx, dword [esi + 0x2c]
push ebx
call fcn.004234b0
mov ecx, dword [esi + 0x30]
call fcn.0041ed90
mov ecx, dword [esi + 0x30]
push 0x42c80000
call fcn.0041e820
mov ecx, dword [esi + 0x30]
push 0x44bb8000
call fcn.0041e830
mov ecx, dword [esi + 0x30]
push 0x3f800000
push 0x41a00000
call fcn.0041e800
mov eax, dword [esi + 0x30]
mov edx, dword [0x459630]
add eax, 4
mov dword [eax], edx
mov ecx, dword [0x459634]
mov dword [eax + 4], ecx
mov edx, dword [0x459638]
mov dword [eax + 8], edx
mov ecx, dword [0x45963c]
mov dword [eax + 0xc], ecx
mov edx, dword [0x459640]
mov dword [eax + 0x10], edx
mov ecx, dword [0x459644]
mov dword [eax + 0x14], ecx
mov edx, dword [0x459648]
mov dword [eax + 0x18], edx
mov ecx, dword [0x45964c]
mov dword [eax + 0x1c], ecx
mov edx, dword [0x459650]
mov dword [eax + 0x20], edx
mov ecx, dword [0x459654]
mov dword [eax + 0x24], ecx
mov edx, dword [0x459658]
mov dword [eax + 0x28], edx
mov ecx, dword [0x45965c]
mov dword [eax + 0x2c], ecx
mov edx, dword [0x459660]
mov dword [eax + 0x30], edx
mov ecx, dword [0x459664]
mov dword [eax + 0x34], ecx
mov edx, dword [0x459668]
mov dword [eax + 0x38], edx
mov ecx, dword [0x45966c]
mov dword [eax + 0x3c], ecx
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.004078c0
lea eax, [esp + 0x10]
mov dword [esi + 0x18], ebp
mov edx, dword [edi]
push eax
push edi
call dword [edx + 0x44]
push 0x44
call fcn.00429112
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], 2
je 0x4059b1
mov ecx, eax
call fcn.004249f0
jmp 0x4059b3
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x3c], 0xffffffff
mov dword [esi + 0xaac], eax
je 0x4059e7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, eax
call fcn.00425650
test eax, eax
jne 0x405a03
push str.Failure_creating_environment_bitmap_from_DC
call fcn.00401760
add esp, 4
mov ecx, esi
call fcn.00405cb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x68]
cmp dword [esi + 0xab0], ebp
je 0x405af9
mov edx, dword [esi + 0x880]
cmp dword [edx + 0x704], ebp
je 0x405a34
cmp dword [esi + 0xab4], ebp
je 0x405af9
mov eax, dword [esi + 0xaac]
mov eax, dword [eax + 0xc]
lea ebx, [eax - 1]
cmp ebx, ebp
jl 0x405bbc
mov ecx, dword [esi + 0xaac]
mov eax, dword [ecx + 8]
lea edi, [eax - 1]
cmp edi, ebp
jl 0x405aed
mov ecx, dword [esi + 0xaac]
mov eax, dword [ecx + 0x30]
cmp eax, ebp
je 0x405a6f
push ebx
push edi
call eax
jmp 0x405a71
xor eax, eax
mov dword [esp + 0x1c], eax
and eax, 0xff
mov edx, eax
shl edx, 7
sub edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x1d]
and eax, 0xff
mov ecx, eax
shr edx, 7
shl ecx, 7
add dl, 0x1f
sub ecx, eax
mov eax, 0x80808081
mov byte [esp + 0x1c], dl
mul ecx
mov eax, dword [esp + 0x1e]
mov ecx, dword [esi + 0xaac]
shr edx, 7
add dl, 0x1f
and eax, 0xff
mov byte [esp + 0x1d], dl
mov edx, eax
shl edx, 7
sub edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
add dl, 0x1f
mov byte [esp + 0x1e], dl
mov eax, dword [esp + 0x1c]
push eax
push ebx
push edi
call fcn.004261f0
dec edi
jns 0x405a5c
dec ebx
jns 0x405a48
jmp 0x405bbc
mov ecx, dword [esi + 0xaac]
mov eax, dword [ecx + 0xc]
lea ebx, [eax - 1]
cmp ebx, ebp
jl 0x405bbc
mov edx, dword [esi + 0xaac]
mov eax, dword [edx + 8]
lea edi, [eax - 1]
cmp edi, ebp
jl 0x405bb5
mov ecx, dword [esi + 0xaac]
mov eax, dword [ecx + 0x30]
cmp eax, ebp
je 0x405b34
push ebx
push edi
call eax
jmp 0x405b36
xor eax, eax
mov dword [esp + 0x1c], eax
and eax, 0xff
lea ecx, [eax + eax*8]
shl ecx, 4
sub ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [esp + 0x1d]
shr edx, 7
add dl, 0x6f
and eax, 0xff
mov byte [esp + 0x1c], dl
lea edx, [eax + eax*8]
shl edx, 4
sub edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x1e]
and eax, 0xff
shr edx, 7
lea ecx, [eax + eax*8]
add dl, 0x6f
shl ecx, 4
sub ecx, eax
mov eax, 0x80808081
mov byte [esp + 0x1d], dl
mul ecx
shr edx, 7
mov ecx, dword [esi + 0xaac]
add dl, 0x6f
mov byte [esp + 0x1e], dl
mov edx, dword [esp + 0x1c]
push edx
push ebx
push edi
call fcn.004261f0
dec edi
jns 0x405b21
dec ebx
jns 0x405b0d
push 0x78
call fcn.00429112
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], 3
je 0x405bdf
mov ecx, eax
call fcn.004242a0
jmp 0x405be1
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x3c], 0xffffffff
mov dword [esi + 0xaa8], eax
je 0x4059e7
mov edx, dword [esi + 0xab4]
xor ecx, ecx
cmp edx, ebp
mov edx, dword [esi + 0xaac]
setne cl
push ebp
push ecx
mov ecx, dword [esi + 0xc]
push edx
push ecx
mov ecx, eax
call fcn.004242f0
test eax, eax
jne 0x405c26
push str.Failure_creating_environment_texture_from_bitmap
jmp 0x4059df
mov edi, dword [esi + 0x2c]
cmp edi, ebp
je 0x405c3d
mov ecx, edi
call fcn.00423290
push edi
call fcn.00428d30
add esp, 4
mov ecx, dword [esi + 0x30]
cmp ecx, ebp
je 0x405c4a
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov edx, dword [ecx + 0xa0]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0xa4]
push eax
mov dword [esp + 0x34], edx
call fcn.00421210
mov ecx, dword [esi + 0x2c]
push ebp
push ebp
lea eax, [esp + 0x2c]
push 3
push eax
push 1
call fcn.004234b0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret