Function at 0x1000122f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [0x10051f2c]
mov si, 0x20
mov eax, dword [0x10051f68]
add eax, esi
cmp dword [0x10051dac], eax
jbe 0x1000126e
mov eax, dword [0x10052178]
mov eax, dword [0x1005203c]
mov edx, dword [0x10051d9c]
mov edx, 2
mov cx, 0x80
mov dword [0x10051db0], eax
mov eax, dword [0x10051ff0]
mov eax, dword [0x10051f44]
mov dword [0x1005217c], ecx
mov eax, dword [0x1005209c]
mov dx, 2
cmp eax, dword [0x10051d9c]
je 0x100012b2
or dword [0x10051e2c], eax
mov edi, dword [0x10051f80]
sub edi, edx
mov eax, dword [0x10051f00]
mov esi, 2
mov dword [0x10051f60], ecx
mov dword [0x10051dd8], eax
mov eax, dword [0x1005211c]
mov dword [0x10051d9c], edx
push edi
mov eax, 4
push eax
call sub.USER32.DLL_IsChild
mov edx, dword [0x1005211c]
mov ax, 0xe2
mov ax, 0x40
cmp eax, 1
jl 0x100012f9
mov dword [0x10051e10], ecx
mov edi, dword [0x10051f5c]
mov ax, 0x3d
sub esi, eax
mov dword [0x10052110], eax
mov dword [0x100520e8], esi
mov eax, dword [0x10051f14]
mov dword [0x10051f1c], eax
mov ax, 0xe6
push eax
call sub.USER32.DLL_IsWindowUnicode
mov eax, dword [0x10051fdc]
mov di, 0x80
cmp eax, 1
je 0x10001328
mov eax, dword [0x10052118]
sub eax, eax
mov eax, 0x35
mov dword [0x10051d9c], ecx
mov eax, dword [0x10052160]
call sub.KERNEL32.DLL_GetThreadLocale
mov esi, dword [0x1005203c]
mov edx, 4
cmp esi, edi
je 0x10001362
mov dword [0x10051fdc], eax
mov dword [0x10051d9c], ecx
mov eax, dword [0x10051d9c]
add eax, eax
mov eax, dword [0x10052100]
mov dword [0x10051da4], eax
mov dword [0x10051d9c], eax
mov dword [0x10051d9c], eax
mov dword [0x10051e90], ecx
mov edi, dword [0x1005216c]
push edi
call sub.USER32.DLL_IsWindowUnicode
mov edx, dword [0x1005205c]
mov edx, 0x20
sub eax, eax
cmp eax, 1
je 0x100013ab
mov edx, dword [0x10052160]
mov eax, dword [0x10051e44]
sub edi, eax
add dword [0x10051ee4], 4
mov esi, dword [0x10051e64]
mov esi, dword [0x10051f00]
mov eax, dword [0x10051ecc]
mov edi, dword [0x10051e70]
push edi
call sub.USER32.DLL_IsWindowUnicode
mov ecx, dword [0x10051f84]
mov eax, 0xb7
mov edi, dword [0x10051ea4]
cmp dword [0x10051e2c], eax
je 0x100013f0
or dword [0x10051ecc], eax
mov eax, dword [0x100520bc]
mov eax, 0x92
mov esi, dword [0x10051de8]
mov dword [0x10051f48], eax
mov dword [0x10051e08], eax
mov dword [0x10051f9c], eax
mov eax, dword [0x10051fac]
sub eax, eax
push eax
push edx
call sub.USER32.DLL_IsChild
mov esi, dword [0x10051fd8]
sub eax, eax
sub edx, esi
cmp dword [0x10051fcc], 0x4f
jb 0x1000142e
mov edx, dword [0x1005215c]
sub esi, edx
mov dword [0x10052140], eax
mov esi, dword [0x10051ea8]
mov dword [0x10051db0], edi
push 0xb6
mov dword [0x10051d9c], eax
push 0
call sub.USER32.DLL_LoadIconA
mov eax, dword [0x10051f80]
mov ecx, 1
mov eax, dword [0x10051ee4]
cmp dword [0x10051e1c], eax
jge 0x10001478
mov ecx, dword [0x10051f0c]
sub eax, eax
mov ecx, dword [0x1005211c]
sub eax, eax
mov dword [0x10051f6c], esi
sbb eax, dword [0x10052124]
mov dword [0x10051f70], esi
push 0x10051d4e
call sub.KERNEL32.DLL_LoadLibraryA
mov ecx, eax
mov dword [0x10052094], ecx
mov dword [0x10051d9c], eax
push 0xc6
mov dword [0x10051ebc], eax
push 0
call sub.USER32.DLL_LoadIconA
mov esi, dword [0x10051f78]
add esi, edi
mov ecx, 4
test eax, eax
jae 0x100014e0
mov ecx, dword [0x1005200c]
mov ecx, dword [0x10051ee4]
mov eax, dword [0x10051da0]
mov eax, 0xd0
add edi, esi
mov dword [0x10051f28], esi
mov eax, dword [0x10051fbc]
mov edi, dword [0x10051fb0]
mov esi, dword [0x10051d9c]
push dword [0x10051f9c]
mov dword [0x10052178], eax
push dword [0x10051fdc]
call sub.USER32.DLL_IsChild
mov edi, dword [0x1005214c]
add eax, eax
mov edx, 0x24
cmp eax, dword [0x10052160]
jb 0x1000152d
mov dword [0x10051e94], edi
mov eax, dword [0x1005202c]
mov eax, 2
add eax, eax
mov dword [0x1005209c], eax
mov dword [0x10051e04], eax
mov ecx, dword [0x10051e20]
mov eax, dword [0x10051ea0]
push eax
push esi
call sub.USER32.DLL_IsChild
mov eax, dword [0x100520e4]
sub edx, esi
and eax, dword [0x10051dd4]
mov ax, 0x2b
cmp dword [0x10051d9c], 0x38
jae 0x10001576
mov dword [0x10051dac], edx
mov eax, dword [0x100520fc]
sub eax, edx
mov edx, dword [0x10051d9c]
mov di, 4
mov dword [0x10051f64], ecx
mov dword [0x10052168], eax
mov dword [0x10051e18], edi
inc dword [0x10052094]
mov ecx, dword [0x10052094]
mov eax, 0xcc2c9
sub eax, dword [ecx]
jne 0x10001581
mov ecx, dword [0x10051d9c]
sub eax, edi
mov edx, dword [0x1005210c]
mov ax, 0x10
cmp dword [0x10052044], 0x67
jae 0x100015d6
mov dword [0x10052144], eax
mov eax, dword [0x10051d9c]
mov ax, 0xe5
mov dword [0x10052148], ecx
mov dword [0x10051fb0], eax
xor eax, dword [0x10051f44]
mov dword [0x10051df4], ecx
call sub.KERNEL32.DLL_GetThreadLocale
mov esi, dword [0x10051e24]
sub edx, eax
mov ecx, dword [0x10051f1c]
and ecx, eax
cmp edi, dword [0x10051db0]
je 0x10001616
mov eax, dword [0x100520d0]
mov edi, dword [0x10051d9c]
mov eax, dword [0x10051dfc]
mov eax, 0x76
mov dx, 0x21
mov dword [0x100520cc], eax
mov dword [0x10051db8], eax
mov edx, dword [0x10052158]
call sub.KERNEL32.DLL_GetThreadLocale
mov ecx, dword [0x100520d4]
mov eax, 0x40
mov cx, 0x10
cmp dword [0x10051f94], eax
jbe 0x10001660
and dword [0x10051db4], edi
mov eax, dword [0x1005215c]
mov ax, 0x94
adc eax, dword [0x10052004]
sub eax, eax
mov dword [0x10052030], eax
mov dword [0x10051fc8], edi
mov ecx, dword [0x10052018]
mov ecx, dword [0x10051f90]
call fcn.10001d3f
mov esi, dword [0x10052030]
mov eax, 0x40
mov edi, dword [0x10051d9c]
add eax, eax
cmp edx, 1
ja 0x100016a6
mov eax, dword [0x10052100]
mov eax, dword [0x10052090]
add esi, eax
mov eax, dword [0x10052058]
sub edx, eax
mov dword [0x10051db4], eax
mov edx, dword [0x10052018]
mov dword [0x10052064], eax
mov eax, dword [0x10052104]
pop ebp
ret