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

Disassembly:
push 0xffffffffffffffff
push 0x4e5d07
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
add eax, 0x5c
push eax
push dword [esp + 0xe0]
call fcn.00417b30
mov edx, dword [esp + 0xe4]
add esp, 8
test al, al
je 0x478d1e
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x478d1e
mov al, 1
jmp 0x479608
mov esi, 0x4ed20c
mov dword [esp + 0x28], esi
mov ebx, 0x51a640
mov dword [esp + 0xd4], 1
xor edi, edi
mov dword [esp + 0x20], ebx
mov eax, 0x30
mov byte [esp + 0xd4], 2
mov word [esp + 0x14], ax
xor ebp, ebp
mov eax, dword [edx]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x479373
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], 0xff
mov ecx, dword [edx]
lea eax, [ebp*2]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x34]
cmp word [eax + ecx], 0x27
jne 0x478dda
inc dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
cmp si, 0x27
je 0x478db8
mov dword [esp + 0x14], 0x27
jmp case.0x478e22.66
mov eax, dword [ecx + 0xc]
add eax, dword [esp + 0x34]
cmp word [eax + ecx - 2], 0x5c
je 0x479360
mov eax, 0x30
mov word [esp + 0x14], ax
jmp case.0x478e22.66
cmp word [esp + 0x14], 0x27
je case.0x478e22.66
mov eax, dword [ecx + 0xc]
lea esi, [ebp*2]
mov dword [esp + 0x34], 0
lea eax, [eax + ebp*2]
mov ax, word [eax + ecx]
cmp ax, word [esp + 0x40]
movzx ecx, al
cmova ecx, dword [esp + 0x34]
movsx eax, cl
add eax, 0xffffffbf
cmp eax, 0x39
ja case.0x478e22.66
movzx eax, byte [eax + 0x479658]
jmp dword [eax*4 + 0x479634]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xe
je 0x47935a
cmp cl, 0x68
mov eax, 0x10
mov ebx, 0x20
cmove ebx, eax
mov eax, ebp
sub eax, dword [esp + 0x2c]
push 2
push ebp
push edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], eax
call fcn.00475fa0
add esp, 0xc
mov dword [esp + 0x94], 0
mov esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x88]
mov dword [esp + 0x90], esi
push eax
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
dec esi
add esp, 0x14
add ebp, esi
or edi, ebx
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xdc]
jmp case.0x478e22.66
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xe
je 0x47935a
push 2
mov eax, ebp
mov dword [esp + 0x6c], 8
sub eax, dword [esp + 0x30]
push ebp
push edx
mov dword [esp + 0x78], eax
call fcn.00475fa0
add esp, 0xc
mov dword [esp + 0x74], 0
mov esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x68]
mov dword [esp + 0x70], esi
push eax
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov ebx, dword [esp + 0x2c]
dec esi
mov edx, dword [esp + 0xf0]
add ebp, esi
add esp, 0x14
or edi, 8
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xe
je 0x47935a
push 2
mov eax, ebp
mov dword [esp + 0xac], 4
sub eax, dword [esp + 0x30]
push ebp
push edx
mov dword [esp + 0xb8], eax
call fcn.00475fa0
add esp, 0xc
mov dword [esp + 0xb4], 0
mov esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0xa8]
mov dword [esp + 0xb0], esi
push eax
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov ebx, dword [esp + 0x2c]
dec esi
mov edx, dword [esp + 0xf0]
add ebp, esi
add esp, 0x14
or edi, 4
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xe
je 0x47935a
push 3
mov eax, ebp
mov dword [esp + 0x4c], 2
sub eax, dword [esp + 0x30]
push ebp
push edx
mov dword [esp + 0x58], eax
call fcn.00475fa0
add esp, 0xc
mov dword [esp + 0x54], 0
xor ebx, ebx
lea ecx, [esp + 0x28]
cmp eax, 3
lea eax, [esp + 0x48]
setge bl
push eax
lea ebx, [ebx*2 + 1]
mov dword [esp + 0x54], ebx
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov edx, dword [esp + 0xf0]
dec ebx
add ebp, ebx
add esp, 0x14
mov ebx, dword [esp + 0x18]
or edi, 2
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xe
je 0x47935a
cmp cl, 0x41
mov dword [esp + 0x58], 1
mov eax, ebp
mov dword [esp + 0x64], 0
sete cl
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
xor eax, eax
test cl, cl
mov byte [esp + 0x1f], cl
lea ecx, [esp + 0x28]
setne al
mov dword [esp + 0x60], eax
lea eax, [esp + 0x58]
push eax
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov edx, dword [esp + 0xf0]
lea eax, [ebp + 1]
add esp, 0x14
mov dword [esp + 0x34], eax
or edi, 1
mov ebx, dword [edx]
cmp eax, dword [ebx + 4]
jge 0x479124
cmp byte [esp + 0x1f], 0
mov ecx, 0x50
mov eax, 0x70
cmovne eax, ecx
mov ecx, dword [ebx + 0xc]
add ecx, esi
movzx eax, al
cmp word [ecx + ebx + 2], ax
cmove ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x64], 0xf
je 0x47935a
push 4
push ebp
push edx
call fcn.00475fa0
mov ecx, eax
add esp, 0xc
cmp ecx, 2
jl 0x478eba
cmp ecx, 4
mov dword [esp + 0x84], 0
mov eax, 0x400
mov esi, 0x800
cmove esi, eax
mov eax, ebp
sub eax, dword [esp + 0x2c]
xor ebx, ebx
cmp ecx, 4
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x78], esi
sete bl
lea ecx, [esp + 0x28]
push eax
lea ebx, [ebx*2 + 2]
mov dword [esp + 0x84], ebx
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov edx, dword [esp + 0xf0]
dec ebx
add ebp, ebx
add esp, 0x14
mov ebx, dword [esp + 0x18]
or edi, esi
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
cmp dword [ebx + 0x64], 0xf
je case.0x478e22.66
push 4
mov eax, ebp
mov dword [esp + 0x9c], 0x200
sub eax, dword [esp + 0x30]
push ebp
push edx
mov dword [esp + 0xa8], eax
call fcn.00475fa0
add esp, 0xc
mov dword [esp + 0xa4], 0
mov esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x98]
mov dword [esp + 0xa0], esi
push eax
call fcn.00475e10
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x40]
push eax
call fcn.0041ac80
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0xd8], 3
push eax
call fcn.0047b470
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xd8], 4
call fcn.00401af0
lea ecx, [esp + 0x44]
call fcn.00467a00
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 2
call fcn.00467a00
mov edx, dword [esp + 0xdc]
dec esi
add ebp, esi
or edi, 0x200
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
cmp dword [ebx + 0x64], 0xf
je case.0x478e22.66
push 4
push ebp
push edx
call fcn.00475fa0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x34], ecx
cmp ecx, 4
jne 0x4792d8
mov esi, 0x20000
jmp 0x4792e8
cmp ecx, 3
mov esi, 0x100
mov eax, 0x1000
cmove esi, eax
mov eax, ebp
mov dword [esp + 0xc0], ecx
sub eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc8], 0
call fcn.00475e10
push dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, ecx
push eax
push ecx
push dword [esp + 0xe8]
lea eax, [esp + 0x30]
push eax
call fcn.00475ec0
mov eax, dword [esp + 0x48]
add esp, 0x14
mov edx, dword [esp + 0xdc]
dec eax
add ebp, eax
or edi, esi
lea eax, [ebp + 1]
mov dword [esp + 0x24], eax
jmp case.0x478e22.66
mov ebx, eax
mov esi, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x3c]
jl 0x478d82
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x479391
cmp dword [ebp + 0x70], 1
jne 0x479391
mov byte [esp + 0x1f], cl
jmp 0x479560
mov eax, edi
and eax, 0x11
cmp eax, 0x10
jne 0x47940f
test ecx, ecx
jle 0x47940f
xor ebx, ebx
mov eax, dword [esi]
cmp eax, 1
je 0x4793f3
test eax, eax
je 0x4793f3
test dword [esi + 8], 0x7fffffff
jne 0x4793cd
push 2
push 0
push 4
push 0x10
call fcn.00413540
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
jmp 0x4793ef
push ecx
mov eax, esp
lea ecx, [esp + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 8]
and eax, 0x7fffffff
push eax
push dword [esi + 4]
call fcn.0047a1f0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0xc]
add eax, ebx
cmp dword [eax + esi], 0x10
jne 0x479405
mov dword [eax + esi], 0x20
add ebx, 0x10
dec ecx
mov dword [esp + 0x2c], ecx
jne 0x4793a1
mov ebx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
cmp ecx, dword [eax + 4]
jge 0x47943d
push dword [esp + 0x30]
mov eax, ecx
sub eax, dword [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00475ec0
add esp, 0x14
jmp 0x479495
mov dword [esp + 0x38], 0x4ed20c
lea eax, [esp + 0x38]
mov byte [esp + 0xd4], 5
push eax
lea ecx, [esp + 0x24]
call fcn.00401af0
mov eax, dword [0x4ed20c]
mov byte [esp + 0xd4], 2
test eax, eax
je 0x479484
cmp eax, 0xffffffff
je 0x479495
mov ecx, 0x4ed20c
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x479495
push 4
push 2
push 0x4ed20c
call fcn.00413640
add esp, 0xc
push ebx
lea ecx, [ebp + 0x5c]
call fcn.004178d0
mov ebx, dword [esp + 0x20]
cmp dword [ebp + 0x58], ebx
je 0x47950a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.00403490
mov ebx, dword [ebp + 0x58]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [ebp + 0x58], eax
mov eax, dword [ebx]
test eax, eax
je 0x4794e0
cmp eax, 0xffffffff
je 0x479506
or eax, 0xffffffff
lock xadd dword [ebx], eax
setne al
test al, al
jne 0x479506
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x30]
add eax, 4
lea eax, [ebx + eax*4]
push eax
mov eax, dword [ebx + 8]
add eax, 4
lea eax, [ebx + eax*4]
push eax
call fcn.00402f00
push ebx
call fcn.004bee90
add esp, 4
mov ebx, dword [esp + 0x20]
cmp esi, dword [ebp + 0x14]
je 0x479551
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00475830
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x479540
cmp ecx, 0xffffffff
je 0x47954d
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne cl
test cl, cl
jne 0x47954d
push 4
push 0x10
push eax
call fcn.00413640
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov dword [ebp + 8], edi
mov dword [ebp + 0x2c], 0xffffffff
mov byte [esp + 0x1f], 1
mov eax, dword [ebx]
mov byte [esp + 0xd4], 1
test eax, eax
je 0x479586
or ebp, 0xffffffff
cmp eax, ebp
je 0x4795e0
mov eax, ebp
lock xadd dword [ebx], eax
setne al
test al, al
jne 0x4795e0
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
add edi, 4
add ebp, 4
lea edi, [ebx + edi*4]
lea ebp, [ebx + ebp*4]
cmp ebp, edi
je 0x4795d4
or esi, 0xffffffff
nop
mov ecx, dword [edi - 4]
sub edi, 4
mov eax, dword [ecx]
test eax, eax
je 0x4795be
cmp eax, 0xffffffff
je 0x4795cc
mov eax, esi
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x4795cc
push 4
push 2
push dword [edi]
call fcn.00413640
add esp, 0xc
cmp edi, ebp
jne 0x4795a0
mov esi, dword [esp + 0x28]
push ebx
call fcn.004bee90
add esp, 4
or ebp, 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4795f7
cmp eax, 0xffffffff
je 0x479604
lock xadd dword [esi], ebp
dec ebp
setne al
test al, al
jne 0x479604
push 4
push 0x10
push esi
call fcn.00413640
add esp, 0xc
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004c17c4
add esp, 0xc4
ret 4