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

Disassembly:
push 0xffffffffffffffff
push 0x4ccd18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
xor edi, edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x78], 1
cmp eax, ebx
je 0x476d19
cmp byte [eax], bl
je 0x476d19
push eax
lea eax, [esp + 0x68]
call fcn.00413c90
mov dword [esp + 0x84], eax
cmp eax, ebx
je 0x476d0f
cmp byte [eax], bl
je 0x476d20
mov edi, edi
cmp byte [eax], 0x2f
jne 0x476d08
mov byte [eax], 0x5c
inc eax
cmp byte [eax], bl
jne 0x476d00
jmp 0x476d20
mov ebp, 2
jmp 0x477186
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
push eax
push 2
push ebx
push ecx
call fcn.004ad2b0
add esp, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x476d0f
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
cmp dword [esi + 8], ebx
mov eax, dword [esi]
setne byte [esp + 0x13]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x4770e7
mov edi, ebx
mov esi, eax
jmp 0x476d82
xor ebx, ebx
cmp edi, ebx
je 0x476d8f
push edi
call fcn.004ba14c
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
cmp eax, ebx
je 0x476dac
push eax
call fcn.004ba14c
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x44]
call fcn.00414640
cmp eax, ebx
je 0x476dd6
mov ebx, eax
push esi
lea eax, [esp + 0x38]
call fcn.00414640
xor ebx, ebx
mov edi, dword [esp + 0x44]
cmp edi, ebx
je 0x4770ae
cmp byte [edi], bl
je 0x4770b5
mov eax, edi
lea esp, [esp]
cmp byte [eax], 0x2f
jne 0x476df8
mov byte [eax], 0x5c
inc eax
cmp byte [eax], bl
jne 0x476df0
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x476e02
sub eax, ecx
cmp byte [edi + eax - 1], 0x5c
push 0x410
sete al
xor edx, edx
cmp al, bl
setne dl
mov esi, 0x208
push ebx
mov byte [esp + 0x90], al
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], esi
lea ebp, [edx + 2]
mov dword [esp + 0x30], ebp
call fcn.004bb6d7
add esp, 8
cmp eax, ebx
jne 0x476e5a
push ebx
call fcn.004ba14c
add esp, 4
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x4c], esi
jmp 0x476e62
mov ecx, eax
mov dword [esp + 0x54], ebx
mov byte [eax], bl
mov dword [esp + 0x50], ecx
mov byte [esp + 0x78], 4
cmp ecx, ebx
je 0x47707d
push ebx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x47707d
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476e90
sub eax, edx
cmp byte [edi + eax - 1], 0x5c
jne 0x476ea4
mov byte [edi + eax - 1], bl
push 0x5c
push edi
call fcn.004bc514
add esp, 8
cmp eax, ebx
je 0x476ee8
inc eax
push eax
lea eax, [esp + 0x5c]
call fcn.00413c90
lea edi, [esp + 0x58]
lea esi, [esp + 0x40]
call fcn.00413a70
cmp ebp, 3
jne 0x476ee4
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x20], 0x5c
call fcn.00414160
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x476faa
cmp byte [esi], bl
je 0x476faa
mov ebp, dword [esp + 0x84]
cmp ebp, ebx
je 0x476f4c
cmp byte [ebp], bl
je 0x476f4c
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476f11
sub eax, edx
cmp byte [eax + ebp - 1], 0x5c
je 0x476f3a
push 1
push 1
lea ecx, [esp + 0x20]
push ecx
lea esi, [esp + 0x40]
mov word [esp + 0x24], 0x5c
call fcn.00414160
push 1
push 1
push ebp
lea esi, [esp + 0x40]
call fcn.00414160
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x28], 2
jne 0x47700c
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476f60
sub eax, edx
cmp byte [esi + eax - 1], 0x5c
jne 0x476f7d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x34]
call fcn.00413dc0
cmp byte [esp + 0x13], bl
je 0x477041
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004771e0
add esp, 0x10
mov ebp, eax
jmp 0x477082
cmp ebp, 2
jne 0x476fc0
lea edi, [esp + 0x40]
lea esi, [esp + 0x34]
call fcn.00413a70
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x84]
cmp ebp, ebx
je 0x47700c
cmp byte [ebp], bl
je 0x47700c
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x476fd5
sub eax, edx
cmp byte [eax + ebp - 1], 0x5c
je 0x476ffe
push 1
push 1
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x40]
mov word [esp + 0x28], 0x5c
call fcn.00414160
push 1
push 1
push ebp
lea esi, [esp + 0x40]
call fcn.00414160
cmp dword [esp + 0x28], 3
jne 0x476f7d
cmp byte [esp + 0x8c], bl
je 0x477061
cmp byte [esp + 0x88], bl
jne 0x477041
push 1
push ebx
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x58]
mov word [esp + 0x2c], 0x5c
call fcn.00414160
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push eax
push esi
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004771e0
add esp, 0x10
mov ebp, eax
jmp 0x477086
cmp byte [esp + 0x88], bl
je 0x477041
lea eax, [esp + 0x4c]
call fcn.004146f0
mov ecx, dword [esp + 0x50]
mov byte [eax + ecx - 1], bl
jmp 0x477041
mov ebp, 2
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x4770a6
mov eax, dword [esp + 0x4c]
push eax
push ebx
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
mov dword [esp + 0x50], ebx
cmp ebp, ebx
jne 0x4770bf
mov esi, dword [esp + 0x30]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x30], esi
cmp esi, ebx
jne 0x476d80
xor ebx, ebx
cmp dword [esp + 0x38], ebx
je 0x4770e1
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
push ecx
push ebx
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
mov edi, dword [esp + 0x5c]
xor ebx, ebx
mov byte [esp + 0x78], 1
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x47710c
mov edx, dword [esp + 0x40]
push edx
push ebx
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp eax, 1
sete cl
cmp cl, bl
je 0x47714e
cmp eax, 1
je 0x47712d
mov dword [0x4f1c3c], 0x80000
jmp 0x477186
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 4]
call fcn.004a24f0
mov dword [0x4f1c3c], eax
cmp esi, ebx
je 0x477147
call fcn.004a2600
mov edx, dword [esp + 0x24]
push edx
jmp 0x47717e
cmp eax, 2
je 0x47715f
mov dword [0x4f1c78], 0x80000
jmp 0x477186
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 4]
call fcn.004ac390
mov dword [0x4f1c78], eax
cmp esi, ebx
je 0x477179
call fcn.004ad360
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004b9d3f
add esp, 4
mov esi, dword [esp + 0x68]
cmp esi, ebx
je 0x4771a6
mov edx, dword [esp + 0x64]
push edx
push ebx
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
cmp edi, ebx
je 0x4771c2
mov eax, dword [esp + 0x58]
push eax
push ebx
push edi
call fcn.004c16a0
add esp, 0xc
push edi
call fcn.004ba14c
add esp, 4
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret