Function at 0x4a7e90
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x600da1
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
test eax, eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
je 0x4a8b44
mov ecx, dword [eax + 0x4c]
add eax, 0x2c
cmp ecx, eax
je 0x4a8381
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x4a8381
mov edi, edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x14]
add ecx, 8
xor ebp, ebp
mov eax, ecx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a7f22
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00402990
mov dword [esp + 0xc4], ebp
mov ecx, dword [edi + 0x18]
add ecx, 8
mov eax, ecx
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a7f61
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00402990
mov byte [esp + 0xc4], 1
cmp dword [esp + 0x88], 0x10
jb 0x4a7f95
mov edi, dword [esp + 0x74]
cmp edi, ebp
jne 0x4a7f99
xor ebp, ebp
jmp 0x4a7fef
lea edi, [esp + 0x74]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
mov ebp, eax
add esp, 4
lea eax, [esi + esi + 2]
push eax
push 0
push ebp
call fcn.005da970
add esp, 0xc
push esi
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x4c]
cmp esi, 7
mov eax, esi
jb 0x4a7fff
mov eax, 7
mov edi, dword [esp + 0x50]
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a8010
lea edx, [esp + 0x3c]
mov ecx, str.bIsShow
call fcn.00440300
test eax, eax
jne 0x4a807e
cmp esi, 7
jb 0x4a807e
cmp esi, 7
setne al
test eax, eax
jne 0x4a807e
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.00409dd0
mov eax, dword [eax]
push str.TRUE
push eax
call fcn.005d2da6
xor edx, edx
add esp, 8
test eax, eax
mov eax, dword [ebx]
sete dl
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a830b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a830b
cmp esi, 6
mov eax, esi
jb 0x4a808a
mov eax, 6
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a8097
lea edx, [esp + 0x3c]
mov ecx, str.Height
call fcn.00440300
test eax, eax
jne 0x4a80ca
cmp esi, 6
jb 0x4a80ca
cmp esi, 6
setne al
test eax, eax
jne 0x4a80ca
push 0xa
push eax
push ebp
call fcn.005d419b
mov ecx, dword [ebx]
add esp, 0xc
mov dword [ecx + 0x30], eax
jmp 0x4a830b
cmp esi, 5
mov eax, esi
jb 0x4a80d6
mov eax, 5
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a80e3
lea edx, [esp + 0x3c]
mov ecx, str.Width
call fcn.00440300
test eax, eax
jne 0x4a8116
cmp esi, 5
jb 0x4a8116
cmp esi, 5
setne al
test eax, eax
jne 0x4a8116
push 0xa
push eax
push ebp
call fcn.005d419b
mov edx, dword [ebx]
add esp, 0xc
mov dword [edx + 0x34], eax
jmp 0x4a830b
cmp esi, 7
mov eax, esi
jb 0x4a8122
mov eax, 7
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a812f
lea edx, [esp + 0x3c]
mov ecx, str.Caption
call fcn.00440300
test eax, eax
jne 0x4a815d
cmp esi, 7
jb 0x4a815d
cmp esi, 7
setne al
test eax, eax
jne 0x4a815d
mov edi, dword [ebx]
add edi, 0x2c
mov edx, ebp
call fcn.00403760
jmp 0x4a830b
cmp esi, 4
mov eax, esi
jb 0x4a8169
mov eax, 4
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a8176
lea edx, [esp + 0x3c]
mov ecx, str.Type
call fcn.00440300
test eax, eax
jne 0x4a8226
cmp esi, 4
jb 0x4a8226
cmp esi, 4
setne al
test eax, eax
jne 0x4a8226
lea eax, [esp + 0x30]
push eax
mov ecx, str.MAIN_ITEM
call fcn.00409dd0
push eax
mov ecx, ebp
call fcn.00414f20
mov ecx, dword [ebx]
add esp, 4
neg al
sbb eax, eax
and eax, 2
add eax, 0xffffffff
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a81e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
cmp dword [ecx + 0x38], 0xffffffff
jne 0x4a830b
lea edx, [esp + 0x28]
push edx
mov ecx, str.SUB_ITEM
call fcn.00409dd0
push eax
mov ecx, ebp
call fcn.00414f20
mov ecx, dword [ebx]
add esp, 4
neg al
sbb eax, eax
and eax, 3
add eax, 0xffffffff
mov dword [ecx + 0x38], eax
lea ecx, [esp + 0x28]
jmp 0x4a8306
cmp esi, 2
mov eax, esi
jb 0x4a8232
mov eax, 2
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a823f
lea edx, [esp + 0x3c]
mov ecx, 0x63190c
call fcn.00440300
test eax, eax
jne 0x4a8272
cmp esi, 2
jb 0x4a8272
cmp esi, 2
setne al
test eax, eax
jne 0x4a8272
push 0xa
push eax
push ebp
call fcn.005d419b
mov edx, dword [ebx]
add esp, 0xc
mov dword [edx + 0x3c], eax
jmp 0x4a830b
cmp esi, 9
mov eax, esi
jb 0x4a827e
mov eax, 9
cmp edi, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a828b
lea edx, [esp + 0x3c]
mov ecx, str.bIsExpand
call fcn.00440300
test eax, eax
jne 0x4a830b
cmp esi, 9
jb 0x4a830b
cmp esi, 9
setne al
test eax, eax
jne 0x4a830b
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00409dd0
mov byte [esp + 0xc4], 2
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jne 0x4a82d1
mov edx, dword [ebx]
mov dword [edx + 0x28], 0
jmp 0x4a8302
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00409dd0
mov eax, dword [eax]
push str.TRUE
push eax
call fcn.005d2da6
mov edx, dword [ebx]
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov dword [edx + 0x28], ecx
lea ecx, [esp + 0x2c]
call fcn.00403870
lea ecx, [esp + 0x18]
call fcn.00403870
test ebp, ebp
je 0x4a8318
push ebp
call fcn.005d28c2
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x88], esi
jb 0x4a8333
mov eax, dword [esp + 0x74]
push eax
call fcn.005d2367
add esp, 4
mov dword [esp + 0xc4], 0xffffffff
cmp dword [esp + 0x50], esi
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x4a836c
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005d2367
add esp, 4
mov ecx, dword [esp + 0x1c]
call fcn.005cd8b0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4a7f00
mov ecx, dword [esp + 0x24]
push str.Attribute
call fcn.005cd6c0
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a8b3f
mov ecx, dword [eax + 0x4c]
add eax, 0x2c
cmp ecx, eax
je 0x4a86ec
mov ebx, ecx
test ebx, ebx
je 0x4a86ec
mov ecx, dword [ebx + 0x14]
add ecx, 8
mov ebp, 0xf
xor edi, edi
mov eax, ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a83d2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00402990
mov dword [esp + 0xc4], 3
mov ecx, dword [ebx + 0x18]
add ecx, 8
mov eax, ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a8411
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00402990
mov byte [esp + 0xc4], 4
cmp dword [esp + 0x88], 0x10
jb 0x4a8445
mov ebp, dword [esp + 0x74]
cmp ebp, edi
jne 0x4a8449
xor esi, esi
jmp 0x4a849f
lea ebp, [esp + 0x74]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.005da970
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0x4c]
cmp edi, 8
mov eax, edi
jb 0x4a84af
mov eax, 8
mov ebp, dword [esp + 0x50]
cmp ebp, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a84c0
lea edx, [esp + 0x3c]
mov ecx, str.FocusPic
call fcn.00440300
test eax, eax
jne 0x4a8545
cmp edi, 8
jb 0x4a8545
cmp edi, 8
setne al
test eax, eax
jne 0x4a8545
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a850f
mov ecx, dword [0x678fd0]
push 0x2010
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov dword [ecx + 0x44], eax
jmp 0x4a867a
push 0x2000
push 0
push 0
push 0
push 0xa
push 0
push esi
call fcn.005d419b
movzx edx, ax
mov eax, dword [0x678fd0]
add esp, 0xc
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov dword [edx + 0x44], eax
jmp 0x4a867a
cmp edi, 9
mov eax, edi
jb 0x4a8551
mov eax, 9
cmp ebp, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a855e
lea edx, [esp + 0x3c]
mov ecx, str.NormalPic
call fcn.00440300
test eax, eax
jne 0x4a85e3
cmp edi, 9
jb 0x4a85e3
cmp edi, 9
setne al
test eax, eax
jne 0x4a85e3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a85ac
mov eax, dword [0x678fd0]
push 0x2010
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov dword [edx + 0x40], eax
jmp 0x4a867a
push 0x2000
push 0
push 0
push 0
push 0xa
push 0
push esi
call fcn.005d419b
mov ecx, dword [0x678fd0]
movzx eax, ax
add esp, 0xc
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov dword [ecx + 0x40], eax
jmp 0x4a867a
cmp edi, 0xa
mov eax, edi
jb 0x4a85ef
mov eax, 0xa
cmp ebp, 0x10
mov edx, dword [esp + 0x3c]
jae 0x4a85fc
lea edx, [esp + 0x3c]
mov ecx, str.CheckedPic
call fcn.00440300
test eax, eax
jne 0x4a867a
cmp edi, 0xa
jb 0x4a867a
cmp edi, 0xa
setne al
test eax, eax
jne 0x4a867a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a8648
mov edx, dword [0x678fd0]
push 0x2010
push 0
push 0
push 0
push esi
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov dword [edx + 0x48], eax
jmp 0x4a867a
push 0x2000
push 0
push 0
push 0
push 0xa
push 0
push esi
call fcn.005d419b
mov ecx, dword [0x678fd0]
movzx eax, ax
add esp, 0xc
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov dword [ecx + 0x48], eax
test esi, esi
je 0x4a8687
push esi
call fcn.005d28c2
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x88], esi
jb 0x4a86a2
mov edx, dword [esp + 0x74]
push edx
call fcn.005d2367
add esp, 4
mov dword [esp + 0xc4], 0xffffffff
cmp dword [esp + 0x50], esi
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x4a86db
mov eax, dword [esp + 0x3c]
push eax
call fcn.005d2367
add esp, 4
mov ecx, ebx
call fcn.005cd8b0
mov ebx, eax
test ebx, ebx
jne 0x4a83b3
mov ecx, dword [esp + 0x18]
push str.Adjunct
call fcn.005cd6c0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4a8b3f
jmp 0x4a8714
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x4c]
add eax, 0x2c
mov ebx, ecx
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, ecx
push 0x2c
lea ecx, [esp + 0x74]
push 0
push ecx
mov dword [esp + 0x24], ebx
call fcn.005da970
add esp, 0xc
test ebx, ebx
je 0x4a8b18
mov ecx, dword [ebx + 0x14]
add ecx, 8
mov ebp, 0xf
xor edi, edi
mov eax, ecx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a8760
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00402990
mov dword [esp + 0xc4], 5
mov ecx, dword [ebx + 0x18]
add ecx, 8
mov eax, ecx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], edi
mov byte [esp + 0xa0], 0
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4a87a2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.00402990
mov byte [esp + 0xc4], 6
cmp dword [esp + 0xb4], 0x10
jb 0x4a87dc
mov ebp, dword [esp + 0xa0]
test ebp, ebp
jne 0x4a87e3
xor esi, esi
jmp 0x4a883b
lea ebp, [esp + 0xa0]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.005da970
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call ebx
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x68]
cmp edi, 8
mov eax, edi
jb 0x4a884b
mov eax, 8
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x4a885a
lea edx, [esp + 0x58]
mov ecx, str.FocusPic
call fcn.00440300
xor ebp, ebp
cmp eax, ebp
jne 0x4a88d2
cmp edi, 8
jb 0x4a88d2
xor eax, eax
cmp edi, 8
setne al
cmp eax, ebp
jne 0x4a88d2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a88a5
mov ecx, dword [0x678fd0]
push 0x2010
push ebp
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x74], eax
jmp 0x4a8a95
push 0x2000
push ebp
push ebp
push ebp
push 0xa
push ebp
push esi
call fcn.005d419b
movzx edx, ax
mov eax, dword [0x678fd0]
add esp, 0xc
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x74], eax
jmp 0x4a8a95
cmp edi, 9
mov eax, edi
jb 0x4a88de
mov eax, 9
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x4a88ed
lea edx, [esp + 0x58]
mov ecx, str.NormalPic
call fcn.00440300
cmp eax, ebp
jne 0x4a8963
cmp edi, 9
jb 0x4a8963
xor eax, eax
cmp edi, 9
setne al
cmp eax, ebp
jne 0x4a8963
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a8936
mov ecx, dword [0x678fd0]
push 0x2010
push ebp
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x70], eax
jmp 0x4a8a95
push 0x2000
push ebp
push ebp
push ebp
push 0xa
push ebp
push esi
call fcn.005d419b
movzx edx, ax
mov eax, dword [0x678fd0]
add esp, 0xc
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x70], eax
jmp 0x4a8a95
cmp edi, 0xa
mov eax, edi
jb 0x4a896f
mov eax, 0xa
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x4a897e
lea edx, [esp + 0x58]
mov ecx, str.CheckedPic
call fcn.00440300
cmp eax, ebp
jne 0x4a89f4
cmp edi, 0xa
jb 0x4a89f4
xor eax, eax
cmp edi, 0xa
setne al
cmp eax, ebp
jne 0x4a89f4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a89c7
mov ecx, dword [0x678fd0]
push 0x2010
push ebp
push ebp
push ebp
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x78], eax
jmp 0x4a8a95
push 0x2000
push ebp
push ebp
push ebp
push 0xa
push ebp
push esi
call fcn.005d419b
movzx edx, ax
mov eax, dword [0x678fd0]
add esp, 0xc
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x78], eax
jmp 0x4a8a95
cmp edi, 7
mov eax, edi
jb 0x4a8a00
mov eax, 7
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x4a8a0f
lea edx, [esp + 0x58]
mov ecx, str.picrect
call fcn.00440300
cmp eax, ebp
jne 0x4a8a3d
cmp edi, 7
jb 0x4a8a42
xor eax, eax
cmp edi, 7
setne al
cmp eax, ebp
jne 0x4a8a3d
lea ecx, [esp + 0x7c]
push ecx
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
jmp 0x4a8a89
cmp edi, 7
jae 0x4a8a46
mov eax, edi
jmp 0x4a8a4b
mov eax, 7
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x4a8a5a
lea edx, [esp + 0x58]
mov ecx, str.tagrect
call fcn.00440300
cmp eax, ebp
jne 0x4a8a95
cmp edi, 7
jb 0x4a8a95
xor eax, eax
cmp edi, 7
setne al
cmp eax, ebp
jne 0x4a8a95
lea eax, [esp + 0x8c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esi
call fcn.00409dd0
call fcn.004a8b70
cmp esi, ebp
je 0x4a8aa2
push esi
call fcn.005d28c2
add esp, 4
cmp dword [esp + 0xb4], 0x10
jb 0x4a8abc
mov edx, dword [esp + 0xa0]
push edx
call fcn.005d2367
add esp, 4
mov esi, 0xf
mov dword [esp + 0xc4], 0xffffffff
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebp
mov byte [esp + 0xa0], 0
jb 0x4a8af6
mov eax, dword [esp + 0x58]
push eax
call fcn.005d2367
add esp, 4
mov ecx, ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
call fcn.005cd8b0
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x18], ebx
jne 0x4a8741
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
add esi, 0x4c
lea eax, [esp + 0x70]
call fcn.004a8e00
mov ecx, dword [esp + 0x1c]
call fcn.005cd700
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4a8710
mov eax, 1
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005d28b3
add esp, 0xb4
ret 4