Function at 0x490000
Capabilities:
Check if file exists
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x586f08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0048d0d0
mov ebp, dword [edi + 0x20]
cmp dword [edi + 0x1c], ebp
lea esi, [edi + 0x18]
jbe 0x49003e
call fcn.005532de
mov dword [esp + 0x18], ebp
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
mov dword [esp + 0x14], esi
jbe 0x490053
call fcn.005532de
mov dword [esp + 0x20], ebp
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
mov dword [esp + 0x1c], esi
jbe 0x490068
call fcn.005532de
mov eax, dword [edi + 0x50]
test eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
jne 0x4900ff
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x490088
call fcn.005532de
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x490095
call fcn.005532de
cmp edi, ebp
mov dword [esp + 0x38], edi
mov eax, edi
je 0x4900b4
mov ecx, dword [esp + 0x4c]
cmp dword [eax + 0x80], ecx
je 0x4900b4
add eax, 0xa90
cmp eax, ebp
jne 0x4900a3
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
jbe 0x4900c9
call fcn.005532de
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x4900d6
call fcn.005532de
cmp ebp, edi
mov dword [esp + 0x38], ebp
mov eax, ebp
je 0x4900f2
cmp dword [eax + 0x80], 0
je 0x4900f2
add eax, 0xa90
cmp eax, edi
jne 0x4900e0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jmp 0x4901e2
mov ebx, dword [edi + 0x4c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
add edi, 0x48
push ecx
mov ecx, edi
call fcn.00456560
mov ebp, eax
mov eax, dword [ebp]
test eax, eax
je 0x490123
cmp eax, edi
je 0x490128
call fcn.005532de
cmp dword [ebp + 4], ebx
je 0x49016f
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x49013a
call fcn.005532de
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x490147
call fcn.005532de
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
push eax
push edx
push ebp
push esi
push ebx
lea eax, [esp + 0x48]
push esi
push eax
call fcn.0048abf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0x1c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov ebx, dword [edi + 4]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x54], 0
call fcn.00456560
mov ebp, eax
mov eax, dword [ebp]
test eax, eax
je 0x490198
cmp eax, edi
je 0x49019d
call fcn.005532de
cmp dword [ebp + 4], ebx
je 0x4901e2
mov edi, dword [esi + 8]
xor ebx, ebx
cmp dword [esi + 4], edi
jbe 0x4901b1
call fcn.005532de
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x4901be
call fcn.005532de
mov edx, dword [esp + 0x34]
push ebx
push edx
push edi
push esi
push ebp
lea eax, [esp + 0x48]
push esi
push eax
call fcn.0048abf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0x1c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x4901ef
call fcn.005532de
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4901fb
cmp ebx, esi
je 0x490200
call fcn.005532de
mov ebp, dword [esp + 0x18]
cmp ebp, edi
je 0x49028e
test ebx, ebx
jne 0x490215
call fcn.005532de
cmp ebp, dword [ebx + 8]
jb 0x49021f
call fcn.005532de
add ebp, 0x88
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490284
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x49023d
call fcn.005532de
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x490249
cmp ebx, esi
je 0x49024e
call fcn.005532de
mov ebp, dword [esp + 0x20]
cmp ebp, edi
je 0x490284
test ebx, ebx
jne 0x49025f
call fcn.005532de
cmp ebp, dword [ebx + 8]
jb 0x490269
call fcn.005532de
add ebp, 0x88
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490284
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
jmp 0x4902c4
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
jmp 0x4902c4
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x49029b
call fcn.005532de
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4902a7
cmp eax, esi
je 0x4902ac
call fcn.005532de
cmp dword [esp + 0x20], edi
je 0x4902bc
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
jmp 0x4902c4
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x4902d1
call fcn.005532de
test ebx, ebx
je 0x4902d9
cmp ebx, esi
je 0x4902de
call fcn.005532de
cmp ebp, edi
je 0x49055b
test ebx, ebx
jne 0x4902ef
call fcn.005532de
cmp ebp, dword [ebx + 8]
jb 0x4902f9
call fcn.005532de
mov eax, dword [0x5ce6d0]
push str.uiview_select_skin_resource
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x490315
push ebp
call eax
mov edi, eax
jmp 0x49031a
mov edi, 5
cmp ebp, dword [ebx + 8]
jb 0x490324
call fcn.005532de
push ebp
push 0x104
push 0x5ce290
call fcn.0055664a
add esp, 0xc
cmp ebp, dword [ebx + 8]
jb 0x490341
call fcn.005532de
lea ecx, [ebp + 0x88]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
mov dword [esp + 0x4c], eax
jne 0x49035b
call fcn.0048fb00
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov dword [esp + 0x44], eax
jbe 0x49037c
call fcn.005532de
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x490388
cmp ecx, esi
je 0x49038d
call fcn.005532de
cmp dword [esp + 0x18], edi
je 0x490432
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4903a3
cmp eax, ebx
je 0x4903a8
call fcn.005532de
cmp dword [esp + 0x20], ebp
jne 0x490432
cmp dword [esp + 0x14], 0
jne 0x4903be
call fcn.005532de
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, dword [edx + 8]
jb 0x4903d0
call fcn.005532de
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x84], 0
jne 0x4903f6
lea ecx, [esp + 0x14]
call fcn.00489930
add eax, 0x88
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490432
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 8]
jb 0x49040c
call fcn.005532de
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x84], 0
cmp eax, dword [ecx + 8]
jb 0x490424
call fcn.005532de
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
call fcn.0048d2b0
cmp ebp, dword [ebx + 8]
jb 0x49043c
call fcn.005532de
mov esi, dword [esp + 0x28]
xor edi, edi
cmp dword [ebp + 0x84], edi
jne 0x490450
cmp dword [esp + 0x4c], edi
jne 0x490478
cmp ebp, dword [ebx + 8]
jb 0x49045a
call fcn.005532de
mov dword [ebp + 0x84], edi
cmp ebp, dword [ebx + 8]
jb 0x49046a
call fcn.005532de
push ebp
lea ecx, [esp + 0x28]
call fcn.0048d2b0
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x4c], edi
mov edi, edi
test esi, esi
je 0x4905bf
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x60f25deb
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x49054c
push 0x5ceca6
push 0xa90
call fcn.00555c18
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x490538
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4904e2
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x60f25deb
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4904eb
call fcn.005532de
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
push 0
push 0
push ebx
push 0x48fbf0
add esi, eax
push 0
mov ecx, 0x2a4
mov edi, ebx
push 0
rep movsd dword es:[edi], dword [esi]
call fcn.00555225
add esp, 0x18
test eax, eax
je 0x49052f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x28]
add ebp, 1
add dword [esp + 0x4c], 0xa90
jmp 0x490480
push ebx
call fcn.0055215c
add esp, 4
mov esi, dword [esp + 0x28]
add ebp, 1
add dword [esp + 0x4c], 0xa90
jmp 0x490480
test esi, esi
je 0x4905bf
push esi
call fcn.0055215c
add esp, 4
jmp 0x4905bf
mov ecx, dword [0x5ce6d0]
push str.uiview_select_skin_resource
push ecx
mov word [0x5ce290], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4905bf
push 0
call eax
test eax, eax
jne 0x4905bf
mov edx, dword [0x5ce6c8]
push 0x83
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
push 0
push 0
push 0x48faf0
push 0
push 0
call fcn.00555225
add esp, 0x18
test eax, eax
je 0x4905ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4905bf
call fcn.0048fa70
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4