Function at 0x413d20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b4abe
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 1
push 0
mov dword [ebx + 0x67c], 0
mov dword [ebx + 0x680], 0x1e
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov eax, dword [ebx + 8]
push esi
push 1
push 0x170
push eax
call edi
mov eax, dword [ebx + 8]
push esi
push 0
push 0x170
push eax
call edi
push 1
lea eax, [ebx + 0x36c]
push eax
mov eax, str.tile_libs
call fcn.00444820
mov edi, eax
mov dword [ebx + 0x554], edi
mov edx, dword [edi]
mov eax, dword [edx + 0xdc]
mov ecx, edi
mov dword [edi + 0x6a0], 1
call eax
test al, al
je 0x413deb
mov byte [edi + 0x170], 1
call fcn.0044d1f0
mov edi, dword [edi + 0x5c]
test edi, edi
je 0x413deb
mov byte [edi + 0x141], 1
mov ecx, dword [ebx + 0x6b0]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x413fe2
mov edx, dword [str.neya6sfl7vs748pw]
mov eax, dword [0x603970]
mov ecx, dword [0x603974]
mov dword [esp + 0x5c], edx
mov edx, dword [0x603978]
mov dword [esp + 0x60], eax
mov al, byte [0x60397c]
push 0
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov byte [esp + 0x70], al
call fcn.00583f2d
add esp, 4
push eax
call fcn.00583ef9
add esp, 4
call fcn.00583f0b
cdq
mov ecx, 0x2328
idiv ecx
mov eax, dword [ebx + 0x6b0]
push eax
lea ecx, [esp + 0x18]
mov esi, edx
add esi, 0x3e8
call fcn.004176f0
push esi
push 0x603980
lea edi, [esp + 0x1c]
mov dword [esp + 0x88], 0
call fcn.00419350
mov eax, dword [esp + 0x1c]
mov esi, dword [eax - 0xc]
push esi
push eax
lea edi, [esp + 0x6c]
call fcn.00439e50
add esp, 0x10
mov edi, eax
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.0043a010
mov byte [esp + 0x80], 1
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x413eb7
lea ecx, [esp + 0x28]
lea esi, [esp + 0x40]
call fcn.0043a300
push edi
mov byte [esp + 0x84], 2
call fcn.005759d0
mov eax, dword [esp + 0x48]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x58], esi
jae 0x413ee4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x24]
call fcn.00408510
push eax
lea edx, [ebx + 0x6a0]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x8c], 3
call fcn.00405bb0
add esp, 0xc
lea ecx, [ebx + 0x6a4]
push eax
mov byte [esp + 0x84], 4
call fcn.00401a80
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x58], esi
jb 0x413f82
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005759d0
add esp, 4
xor edi, edi
cmp dword [esp + 0x3c], 0x10
mov esi, 0xf
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x413faa
mov edx, dword [esp + 0x28]
push edx
call fcn.005759d0
add esp, 4
mov dword [esp + 0x3c], esi
or esi, 0xffffffff
mov dword [esp + 0x80], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413fe5
or esi, 0xffffffff
push 4
call fcn.00575996
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], 5
test eax, eax
je 0x414016
xor edx, edx
push edx
mov ecx, 0x40c860
push ecx
push ebx
push eax
call fcn.00419270
mov ecx, eax
jmp 0x414018
xor ecx, ecx
lea eax, [ebx + 0x780]
mov dword [esp + 0x80], esi
call fcn.004192f0
push 4
call fcn.00575996
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], 6
test eax, eax
je 0x41405b
xor edx, edx
push edx
mov ecx, 0x40acc0
push ecx
push ebx
push eax
call fcn.00419270
mov ecx, eax
jmp 0x41405d
xor ecx, ecx
lea eax, [ebx + 0x778]
mov dword [esp + 0x80], esi
call fcn.004192f0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005832f8
mov esp, ebp
pop ebp
ret 4