Function at 0x479c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d7948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x70], bl
mov eax, dword [esp + 0x98]
push eax
mov dword [esp + 0x8c], ebx
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.CStringCharFromWChar.0
call fcn.0049fa40
add esp, 4
mov dword [esp + 0x88], 1
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x479cfd
mov eax, dword [eax]
mov ebp, eax
cmp eax, ebx
jne 0x479d02
mov ebp, 0x4f0aa8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x88], 3
cmp esi, ebx
je 0x479dd7
cmp word [esi], bx
je 0x479dd7
mov ebx, esi
lea eax, [esp + 0x74]
call fcn.00415310
mov dword [esp + 0x94], eax
test eax, eax
je 0x479dc8
cmp word [eax], 0
je 0x479d6e
cmp word [eax], 0x2f
jne 0x479d65
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x479d57
xor ebx, ebx
mov edx, dword [esp + 0x90]
push ebp
push 2
push ebx
push edx
call fcn.004b1be0
add esp, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x47a200
xor ebp, ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [edi + 8], ebx
mov eax, dword [edi]
setne byte [esp + 0x17]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x47a1b7
mov esi, eax
jmp 0x479de2
mov dword [esp + 0x18], 2
xor ebx, ebx
jmp 0x47a252
mov dword [esp + 0x94], ebx
jmp 0x479d70
xor ebx, ebx
cmp ebp, ebx
je 0x479def
push ebp
call fcn.004c57e5
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x479e0c
push eax
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x48]
call fcn.00415d00
test eax, eax
je 0x479e34
mov ebx, eax
push esi
lea eax, [esp + 0x3c]
call fcn.00415d00
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x47a17d
cmp word [ebp], 0
je 0x47a184
mov eax, ebp
lea ecx, [ecx]
cmp word [eax], 0x2f
jne 0x479e5e
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x479e50
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479e70
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
push 0x820
sete bl
xor edx, edx
test bl, bl
setne dl
mov esi, 0x410
push 0
mov byte [esp + 0x1e], bl
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], esi
add edx, 2
mov dword [esp + 0x20], edx
call fcn.004c61a7
add esp, 8
test eax, eax
jne 0x479ed1
push eax
call fcn.004c57e5
add esp, 4
xor edi, edi
xor esi, esi
mov dword [esp + 0x50], esi
jmp 0x479ee0
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x58], 0
mov word [eax], cx
mov dword [esp + 0x54], edi
mov byte [esp + 0x88], 6
test edi, edi
je 0x47a147
push 0
push edi
shr esi, 1
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x47a147
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479f10
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
jne 0x479f2e
xor edx, edx
mov word [ebp + eax*2 - 2], dx
push 0x5c
push ebp
call fcn.004c6cf1
add esp, 8
test eax, eax
je 0x479f7f
lea ebx, [eax + 2]
lea eax, [esp + 0x5c]
call fcn.00415310
lea edi, [esp + 0x5c]
lea esi, [esp + 0x44]
call fcn.004150f0
cmp dword [esp + 0x18], 3
jne 0x479f73
push 1
push 0
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x5c
call fcn.00415800
mov edi, dword [esp + 0x54]
mov bl, byte [esp + 0x16]
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x47a062
cmp word [eax], 0
je 0x47a062
mov esi, dword [esp + 0x94]
test esi, esi
je 0x479ff6
cmp word [esi], 0
je 0x479ff6
mov eax, esi
lea edx, [eax + 2]
jmp 0x479fb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479fb0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x479fe1
push 1
push 1
lea edx, [esp + 0x30]
push edx
lea esi, [esp + 0x44]
mov dword [esp + 0x34], 0x5c
call fcn.00415800
mov eax, dword [esp + 0x94]
push 1
push 1
push eax
lea esi, [esp + 0x44]
call fcn.00415800
cmp dword [esp + 0x18], 2
jne 0x47a0da
mov eax, dword [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x47a010
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47a010
mov ecx, dword [esp + 0x3c]
sub eax, edx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x47a038
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
call fcn.00415420
cmp byte [esp + 0x17], 0
je 0x47a111
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0047a300
add esp, 0x10
mov esi, eax
jmp 0x47a14c
cmp dword [esp + 0x18], 2
jne 0x47a07e
lea edi, [esp + 0x44]
lea esi, [esp + 0x38]
call fcn.004150f0
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x94]
test esi, esi
je 0x47a0da
cmp word [esi], 0
je 0x47a0da
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47a094
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x47a0c5
push 1
push 1
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x44]
mov dword [esp + 0x38], 0x5c
call fcn.00415800
mov edx, dword [esp + 0x94]
push 1
push 1
push edx
lea esi, [esp + 0x44]
call fcn.00415800
cmp dword [esp + 0x18], 3
jne 0x47a038
cmp byte [esp + 0x9c], 0
je 0x47a131
test bl, bl
jne 0x47a111
push 1
push 0
lea edx, [esp + 0x38]
push edx
lea esi, [esp + 0x5c]
mov dword [esp + 0x3c], 0x5c
call fcn.00415800
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0047a300
add esp, 0x10
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x47a150
test bl, bl
je 0x47a111
lea eax, [esp + 0x50]
call fcn.00415dc0
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
jmp 0x47a111
mov esi, 2
mov dword [esp + 0x18], esi
test edi, edi
je 0x47a175
mov edx, dword [esp + 0x50]
push edx
push 0
push edi
call fcn.004ce290
add esp, 0xc
push edi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x54], 0
test esi, esi
jne 0x47a18c
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x479de0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x47a1b5
mov eax, dword [esp + 0x38]
push eax
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x3c], 0
xor ebx, ebx
mov byte [esp + 0x88], 3
cmp ebp, ebx
je 0x47a1df
mov ecx, dword [esp + 0x44]
push ecx
push ebx
push ebp
call fcn.004ce290
add esp, 0xc
push ebp
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x48], ebx
mov edi, dword [esp + 0x34]
mov eax, dword [edi]
cmp eax, 1
sete cl
cmp cl, bl
je 0x47a222
cmp eax, 1
je 0x47a20a
mov dword [0x516e48], 0x80000
jmp 0x47a252
mov dword [esp + 0x18], 2
jmp 0x47a252
mov esi, dword [edi + 4]
call fcn.004a6740
mov dword [0x516e48], eax
cmp esi, ebx
je 0x47a249
call fcn.004a6850
jmp 0x47a249
cmp eax, 2
je 0x47a233
mov dword [0x516e88], 0x80000
jmp 0x47a252
mov esi, dword [edi + 4]
call fcn.004b0b10
mov dword [0x516e88], eax
cmp esi, ebx
je 0x47a249
call fcn.004b1c90
push edi
call fcn.004c57da
add esp, 4
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x47a276
mov edx, dword [esp + 0x74]
push edx
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x78], ebx
mov esi, dword [esp + 0x60]
cmp esi, ebx
je 0x47a29a
mov eax, dword [esp + 0x5c]
push eax
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x88], 0xffffffff
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x68], vtable.CKuStringT_char__class_CKuStringUtilA_.0
cmp ecx, ebx
je 0x47a2db
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x47a2db
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x47a2d2
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret