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

Disassembly:
push 0xffffffffffffffff
push 0x4cfa89
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.004c60d0
mov eax, dword [0x50397c]
xor eax, esp
mov dword [esp + 0x10c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x10e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10f4]
mov esi, edx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], ecx
call dword [0x4d5364]
test eax, eax
je 0x48f5e3
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x2c], edi
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push esi
mov dword [esp + 0x1108], ebp
call dword [0x4d52cc]
cmp eax, 0xffffffff
jne 0x48ef27
call fcn.00402e30
cmp eax, ebp
jne 0x48f5e3
mov ebx, dword [0x4d52c8]
push ebp
lea edx, [esp + 0x2c]
push edx
push 0x40
lea eax, [esp + 0xa8]
push eax
push edi
mov dword [esp + 0x3c], ebp
call ebx
cmp eax, ebp
jne 0x48ede1
call fcn.00402e30
push 0x1000
lea ecx, [esp + 0xe0]
push ebp
push ecx
mov dword [esp + 0x34], 0x40
call fcn.004b0720
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp byte [edx + 0x2c], 0
jne 0x48f5d4
lea ecx, [ecx]
push ebp
lea eax, [esp + 0x18]
push eax
push 0x22
lea ecx, [esp + 0xe8]
push ecx
push edi
mov dword [esp + 0x28], ebp
call ebx
cmp eax, ebp
jne 0x48ef32
call fcn.00402e30
cmp eax, ebp
jne 0x48f5d4
mov esi, dword [esp + 0xdc]
push ebp
lea edx, [esp + 0x18]
push edx
add esi, 0xffffffde
push esi
lea eax, [esp + 0x10a]
push eax
push edi
mov dword [esp + 0x28], ebp
call ebx
cmp eax, ebp
jne 0x48ef3c
call fcn.00402e30
cmp eax, ebp
jne 0x48f598
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x10ec], 1
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x10ec], 2
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x10ec], 3
movzx ecx, word [esp + 0xe8]
mov eax, dword [esi - 8]
shr ecx, 1
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x48eef6
lea eax, [esp + 0x14]
call fcn.00402a10
mov esi, dword [esp + 0x14]
movzx ecx, word [esp + 0xe8]
push ecx
lea edx, [esp + 0x102]
push edx
push esi
call fcn.004b03b0
movzx eax, word [esp + 0xf4]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x48ef5f
test esi, esi
jne 0x48ef45
xor eax, eax
jmp 0x48ef67
mov edi, eax
mov dword [esp + 0x2c], edi
jmp 0x48edbb
cmp dword [esp + 0x14], 0x22
jmp 0x48ee36
cmp dword [esp + 0x14], esi
jmp 0x48ee6b
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48ef50
sub eax, edx
sar eax, 1
test eax, eax
jl 0x48f5ca
cmp eax, dword [esi - 8]
jg 0x48f5ca
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
movzx ecx, word [esp + 0xea]
mov eax, dword [edi - 8]
movzx esi, word [esp + 0xe8]
shr ecx, 1
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x48efa9
lea eax, [esp + 0x1c]
call fcn.00402a10
mov edi, dword [esp + 0x1c]
movzx eax, word [esp + 0xea]
lea ebp, [esp + 0xfe]
push eax
lea ecx, [esi + ebp]
push ecx
push edi
call fcn.004b03b0
movzx eax, word [esp + 0xf6]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x48eff1
test edi, edi
jne 0x48efdd
xor eax, eax
jmp 0x48eff9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48efe2
sub eax, edx
sar eax, 1
test eax, eax
jl 0x48f5ca
cmp eax, dword [edi - 8]
jg 0x48f5ca
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
movzx edx, word [esp + 0xea]
movzx ecx, word [esp + 0xec]
mov eax, dword [ebx - 8]
add esi, edx
shr ecx, 1
mov edx, 1
sub edx, dword [ebx - 4]
sub eax, ecx
or eax, edx
jge 0x48f03d
lea eax, [esp + 0x24]
call fcn.00402a10
mov ebx, dword [esp + 0x24]
movzx eax, word [esp + 0xec]
push eax
add ebp, esi
push ebp
push ebx
call fcn.004b03b0
movzx eax, word [esp + 0xf8]
shr eax, 1
add esp, 0xc
cmp eax, 0xffffffff
jne 0x48f07f
test ebx, ebx
jne 0x48f069
xor eax, eax
jmp 0x48f087
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48f070
sub eax, edx
sar eax, 1
test eax, eax
jl 0x48f5ca
cmp eax, dword [ebx - 8]
jg 0x48f5ca
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
xor ebp, ebp
mov dword [esp + 0x54], vtable.ST_CHARFACE_KEY.0
mov dword [esp + 0x58], vtable.ST_CHARFACE_KEY.1.0
call eax
add eax, 0x10
mov dword [esp + 0x5c], eax
mov byte [esp + 0x10ec], 4
mov ecx, dword [esp + 0xee]
mov edx, dword [esp + 0xf2]
mov eax, dword [esp + 0xf6]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xfa]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
jle 0x48f1d6
push 0x2c
push esi
call fcn.004aafe2
add esp, 8
test eax, eax
je 0x48f1d6
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x48f1de
lea edx, [esp + 0x1c]
push edx
sub eax, ebp
mov ecx, ebp
lea edx, [esp + 0x4c]
call fcn.004091c0
mov ebx, eax
mov byte [esp + 0x10ec], 5
call fcn.0042ecc0
mov edi, eax
call fcn.0042ed40
mov ecx, dword [eax]
mov esi, dword [esp + 0x5c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x48f1a2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x48f195
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x48f195
call fcn.00402a60
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x48f18c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x5c], ebx
jmp 0x48f1a2
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x60]
call fcn.00406770
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f1ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
add ebp, 1
jmp 0x48f27d
mov dword [esp + 0x18], 0xffffffff
mov ecx, ebp
lea esi, [esp + 0x40]
lea edx, [esp + 0x1c]
call fcn.004091a0
mov ebx, eax
mov byte [esp + 0x10ec], 6
call fcn.0042ecc0
mov edi, eax
call fcn.0042ed40
mov ecx, dword [eax]
mov esi, dword [esp + 0x5c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x48f255
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x48f248
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x48f248
call fcn.00402a60
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x48f23f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x5c], ebx
jmp 0x48f255
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x60]
call fcn.00406770
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f27d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx]
push 0xffffffffffffffff
xor bl, bl
push esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], bl
call dword [0x4d52f0]
test eax, eax
je 0x48f2a1
cmp eax, 0x80
jne 0x48f2a7
mov bl, 1
mov byte [esp + 0x3c], bl
mov edx, dword [esp + 0x20]
mov byte [esp + 0x10ec], 7
mov edi, dword [edx + 8]
test edi, edi
je 0x48f2c9
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.0048ab40
test bl, bl
mov byte [esp + 0x10ec], 4
je 0x48f2e1
push esi
call dword [0x4d5120]
mov byte [esp + 0x3c], 0
cmp dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x38], 0
jne 0x48f0f6
lea edx, [esp + 0x70]
push edx
call fcn.00480c80
mov byte [esp + 0x10ec], 8
mov eax, dword [0x50c48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c48c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x10ec], 9
xor esi, esi
jmp 0x48f330
movzx eax, byte [esp + esi + 0xee]
push eax
push str._02x
lea edi, [esp + 0x20]
call fcn.0042bfe0
add esi, 1
add esp, 8
cmp esi, 0x10
jb 0x48f330
mov ebx, edi
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
push ecx
mov esi, edi
call fcn.00482e40
mov eax, dword [esp + 0x4c]
test eax, eax
mov esi, dword [edi + 4]
je 0x48f373
cmp eax, edi
je 0x48f378
call fcn.004aa383
cmp dword [esp + 0x50], esi
mov al, byte [esp + 0xe0]
je 0x48f38e
mov word [esp + 0x78], 1
jmp 0x48f39c
mov dl, al
and dl, 1
movzx cx, dl
mov word [esp + 0x78], cx
mov ecx, dword [esp + 0xee]
mov ebp, dword [esp + 0x28]
shr al, 1
and al, 1
movzx dx, al
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf6]
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0xf2]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xfa]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x1c]
lea edi, [esp + 0x94]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
call fcn.00406aa0
lea eax, [esp + 0x24]
lea edi, [esp + 0x98]
call fcn.00406aa0
mov edi, dword [esp + 0x20]
mov esi, dword [edi]
push 0xffffffffffffffff
xor bl, bl
push esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], bl
call dword [0x4d52f0]
test eax, eax
je 0x48f43b
cmp eax, 0x80
jne 0x48f441
mov bl, 1
mov byte [esp + 0x34], bl
mov byte [esp + 0x10ec], 0xa
mov edi, dword [edi + 8]
test edi, edi
je 0x48f45f
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.0048ab40
test bl, bl
je 0x48f46f
push esi
call dword [0x4d5120]
mov byte [esp + 0x34], 0
add ebp, dword [esp + 0xdc]
mov byte [esp + 0x10ec], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f4aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 4
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f4d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f4f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 3
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f548
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 1
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 0x48f570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x10ec], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
lea ecx, [esp + 0xe0]
push 0
push ecx
call fcn.004b0720
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp byte [edx + 0x2c], 0
jne 0x48f5d4
mov edi, dword [esp + 0x2c]
mov ebx, dword [0x4d52c8]
xor ebp, ebp
jmp 0x48ee10
push 0x80070057
call fcn.00402940
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x48f5e3
push eax
call dword [0x4d52d8]
mov eax, 1
mov ecx, dword [esp + 0x10e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c8]
xor ecx, esp
call fcn.004a91d5
add esp, 0x10dc
ret 4