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

Disassembly:
push 0xffffffffffffffff
push 0x4effe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], ebp
mov byte [esp + 0x7c], al
call fcn.00411e90
mov edi, str.VAG_INDEX.DB
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.VAG_INDEX.DB
lea ecx, [esp + 0x80]
call fcn.004120b0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x8c], cl
lea ecx, [esp + 0x8c]
mov dword [esp + 0x224], ebx
call fcn.00411e90
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x224], 1
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], dl
call fcn.00411e90
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x224], 2
mov byte [esp + 0x6c], al
call fcn.00411e90
mov cl, byte [esp + 0x13]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x40], cl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x30], dl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push ebx
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x228], 5
call fcn.00482170
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00482170
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jbe 0x47d38f
add ebp, 0x34
xor esi, esi
cmp dword [ebp + 8], esi
jb 0x47d33d
cmp dword [ebp + 4], ebx
je 0x47d33d
mov ecx, ebp
call fcn.00481f30
mov ecx, dword [ebp + 4]
mov eax, esi
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x47d349
mov dword [esp + 0x14], 0x4f7480
mov eax, dword [esp + 0x14]
cmp dword [ebp + 8], esi
jb 0x47d365
cmp dword [ebp + 4], ebx
je 0x47d365
mov ecx, ebp
call fcn.00481f30
mov edi, dword [ebp + 4]
mov eax, dword [esp + 0x14]
add edi, esi
jmp 0x47d36a
mov edi, 0x4f7480
movsx edx, byte [eax]
push edx
call fcn.004dfadc
mov ecx, dword [esp + 0x30]
add esp, 4
mov byte [edi], al
mov eax, dword [esp + 0x50]
inc ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x2c], ecx
movsx esi, cx
cmp esi, eax
jb 0x47d31f
lea ecx, [esp + 0xb8]
call fcn.004cf5c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x220], 6
call fcn.004be970
mov cl, byte [esp + 0x13]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], cl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dl, byte [esp + 0x78]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x3c], esp
push ebx
mov ecx, esi
mov byte [esp + 0x234], 8
mov byte [esi], dl
call fcn.00411e90
mov eax, dword [0x4f73d0]
lea ecx, [esp + 0x88]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00411c90
lea ecx, [esp + 0xc8]
call fcn.004cf9d0
cmp al, bl
je 0x47d7e2
mov edi, 0x520168
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x520168
lea ecx, [esp + 0x90]
call fcn.004120b0
mov dword [esp + 0x14], 1
push 2
push 0x512480
lea ecx, [esp + 0x30]
call fcn.004bef10
xor edx, edx
lea ecx, [esp + 0x28]
mov dl, byte [esp + 0x15]
push edx
call fcn.004bec70
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
call fcn.004bec70
lea ecx, [esp + 0x28]
lea edx, [esp + 0x98]
push ecx
push edx
lea ecx, [esp + 0xc0]
call fcn.004cfee0
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x220], 9
cmp eax, esi
je 0x47d595
lea ecx, [esp + 0x18]
call fcn.00476d10
mov ecx, esi
mov edi, eax
call fcn.00476d10
cmp eax, edi
ja 0x47d4e0
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.00476f90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00476d50
mov ecx, esi
call fcn.00476d10
mov edx, dword [esp + 0x1c]
lea eax, [edx + eax*4]
mov dword [esp + 0x20], eax
jmp 0x47d595
lea ecx, [esp + 0x18]
call fcn.00476d30
mov ecx, esi
mov edi, eax
call fcn.00476d10
cmp eax, edi
ja 0x47d53e
mov edi, dword [esi + 4]
lea ecx, [esp + 0x18]
call fcn.00476d10
mov ecx, dword [esp + 0x1c]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.00476f90
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push eax
push edi
call fcn.00476d80
mov ecx, esi
call fcn.00476d10
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x47d595
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00476d50
mov edx, dword [esp + 0x1c]
push edx
call fcn.004deb10
add esp, 4
mov ecx, esi
call fcn.00476d10
cmp eax, ebx
jge 0x47d56b
xor eax, eax
shl eax, 2
push eax
call fcn.004df7b5
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.00476d80
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x228], 8
call fcn.00476d50
mov eax, dword [esp + 0x9c]
push eax
call fcn.004deb10
mov ecx, dword [esp + 0x20]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
je 0x47d789
mov edx, dword [esp + 0x20]
sub edx, ecx
test edx, 0xfffffffc
je 0x47d789
push 0xffffffffffffffff
lea eax, [esp + 0x11c]
push ebx
push eax
call fcn.004bee80
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47d656
xor edx, edx
movsx ecx, byte [esp + edx + 0x118]
lea esi, [esp + edx + 0x118]
push ecx
call fcn.004dfadc
mov byte [esi], al
add esp, 4
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
movsx edx, bp
not ecx
dec ecx
cmp edx, ecx
jb 0x47d623
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.004120b0
mov edi, 0x51247c
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
movsx esi, bp
dec ecx
push ecx
push esi
push 0x51247c
lea ecx, [esp + 0x64]
call fcn.00481ea0
cmp bp, bx
mov edi, eax
jne 0x47d6b0
mov eax, dword [esp + 0x60]
cmp di, 0xffff
je 0x47d6b2
mov eax, edi
movsx eax, ax
sub eax, esi
lea ecx, [esp + 0xa8]
push eax
push esi
push ecx
lea ecx, [esp + 0x64]
call fcn.00481ce0
mov edx, dword [0x4f73d0]
lea ecx, [esp + 0x68]
push edx
push ebx
push eax
mov byte [esp + 0x22c], 0xa
call fcn.00411c90
push 1
lea ecx, [esp + 0xac]
mov byte [esp + 0x224], 8
call fcn.00411e90
lea eax, [edi + 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jne 0x47d70e
mov eax, 0x4f7480
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 0x38]
cmp ecx, ebx
jne 0x47d71e
mov ecx, 0x4f7480
push eax
push ecx
call fcn.0047d150
add esp, 8
test ax, ax
je 0x47d77f
mov edx, dword [0x4f73d0]
lea eax, [esp + 0x68]
push edx
push ebx
push eax
lea ecx, [esp + 0x94]
call fcn.00411c90
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.00481fb0
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.00481fb0
cmp di, 0xffff
jne 0x47d679
mov eax, dword [esp + 0x14]
inc eax
cmp ax, 0xffff
mov dword [esp + 0x14], eax
jb 0x47d432
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x47d7d6
mov esi, dword [esp + 0x38]
sub esi, edi
sar esi, 1
je 0x47d7d6
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x3c]
cmp edx, ebx
jle 0x47d7d6
xor ecx, ecx
movsx eax, cx
cmp eax, esi
jae 0x47d7d1
movsx eax, word [edi + eax*2]
cmp eax, edx
je 0x47d912
inc ecx
jmp 0x47d7bb
dec edx
cmp edx, ebx
jg 0x47d7b9
lea ecx, [esp + 0xb8]
call fcn.004cfc20
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x228], 7
call fcn.00476d50
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x220], 6
call fcn.004beab0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x220], 5
call fcn.004cf740
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x228], 4
call fcn.004821b0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004deb10
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push edx
push eax
mov dword [esp + 0x44], ebx
mov byte [esp + 0x228], 3
call fcn.004821b0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push 1
mov dword [esp + 0x50], ebx
mov byte [esp + 0x224], 2
call fcn.00411e90
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x224], 1
call fcn.00411e90
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x224], bl
call fcn.00411e90
push 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x224], 0xffffffff
call fcn.00411e90
xor ax, ax
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x214
ret 8
mov edx, dword [esp + 0x44]
movsx ecx, cx
lea eax, [edx + ecx*2]
mov edx, dword [esp + 0x228]
mov cx, word [eax]
sar ecx, 8
mov byte [edx], cl
mov ecx, dword [esp + 0x22c]
mov al, byte [eax]
mov byte [ecx], al
lea ecx, [esp + 0xb8]
call fcn.004cfc20
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x228], 7
call fcn.00476d50
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x220], 6
call fcn.004beab0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x220], 5
call fcn.004cf740
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x228], 4
call fcn.004821b0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004deb10
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push edx
push eax
mov dword [esp + 0x44], ebx
mov byte [esp + 0x228], 3
call fcn.004821b0
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push 1
mov dword [esp + 0x50], ebx
mov byte [esp + 0x224], 2
call fcn.00411e90
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x224], 1
call fcn.00411e90
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x224], bl
call fcn.00411e90
push 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x224], 0xffffffff
call fcn.00411e90
mov ax, 1
jmp 0x47d8f7