Function at 0x49be30
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x56ee5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x5d2d10]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3e4]
mov byte [esp + 0x7c], 1
cmp eax, ebx
je 0x49beba
call fcn.004a58e0
mov ecx, dword [esi + 0x3e4]
mov edi, eax
lea eax, [esp + 0x18]
mov ebp, dword [edi]
push eax
push 0x10
call fcn.0047f160
push eax
mov ecx, edi
call dword [ebp + 0x44]
call fcn.004a58e0
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
mov ecx, dword [esi + 0x3e4]
mov ebp, dword [edi]
push 5
call fcn.0047f160
push eax
mov ecx, edi
call dword [ebp + 0x4c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00530904
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0049c230
test eax, eax
je 0x49bf16
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x110]
push edx
call fcn.0053144b
call fcn.0054fc30
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
push eax
mov eax, dword [esi + 0xb4]
push 0x170
push eax
jmp 0x49bfcf
lea ecx, [esp + 0x1c]
push 3
push ecx
lea ecx, [esi + 0x198]
call fcn.004ae3d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 2
call fcn.00530cc8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 1
call fcn.00530b8f
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x49bf75
lea eax, [esp + 0x1c]
push 0xee
push eax
call fcn.004ef2a0
mov ebx, 1
add esp, 8
mov dword [esp + 0x20], ebx
mov byte [esp + 0x7c], 3
jmp 0x49bf79
lea eax, [esp + 0x10]
mov eax, dword [eax]
lea ecx, [esi + 0x110]
push eax
call fcn.0053144b
test bl, 1
mov dword [esp + 0x7c], 1
je 0x49bf9d
lea ecx, [esp + 0x1c]
call fcn.00530b8f
call fcn.0054fc30
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 8]
test edx, edx
sete al
lea eax, [eax + eax + 0x7f01]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0xb4]
push 0
push eax
push 0x170
push edx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00535a5f
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push ecx
mov edi, eax
call ebx
push eax
call fcn.005365e3
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
push 0x483
mov ecx, esi
mov ebp, eax
call fcn.00531203
test eax, eax
je 0x49c018
mov eax, dword [eax + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x24]
push ecx
push eax
call ebx
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00536206
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x68], eax
call ebx
push 0x487
mov ecx, esi
call fcn.00531203
test eax, eax
je 0x49c070
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push eax
call ebx
lea edx, [esp + 0x34]
mov ecx, esi
push edx
call fcn.00536206
push 0x481
mov ecx, esi
call fcn.00531203
test eax, eax
je 0x49c097
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x44]
push ecx
push eax
call ebx
lea edx, [esp + 0x44]
mov ecx, esi
push edx
call fcn.00536206
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
lea ebx, [esp + 0x54]
push 0x410
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x68]
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
mov ebx, eax
mov ebp, edx
sub ebx, ecx
sub ebp, edi
cmp ebx, ebp
jle 0x49c1f4
sub edi, ecx
mov ecx, dword [esp + 0x68]
sub edi, edx
mov edx, dword [esp + 0x6c]
add edi, eax
mov eax, dword [esp + 0x70]
add eax, edi
push 1
mov dword [esp + 0x74], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x6c]
sub edx, eax
push edx
push ecx
push eax
mov ecx, esi
call fcn.005314e5
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
add ebp, edi
add ebx, edi
push 0x487
mov ecx, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebx
call fcn.00531203
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x3c]
sub ebx, edx
push ebx
push ecx
push edx
mov ecx, eax
call fcn.005314e5
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
add ebp, edi
add ebx, edi
push 0x481
mov ecx, esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebx
call fcn.00531203
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x4c]
sub ebx, edx
push ebx
push ecx
push edx
mov ecx, eax
call fcn.005314e5
mov ecx, dword [esp + 0x30]
push 0x483
add ecx, edi
mov dword [esp + 0x34], ecx
mov ecx, esi
call fcn.00531203
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x2c]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call fcn.005314e5
mov eax, dword [esi + 0x1c]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 0
call fcn.00530b8f
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret