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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x34], edx
cmp eax, 2
ja 0x47ba99
mov ebx, ecx
add ecx, 0x38
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], ebx
nop dword [eax]
mov edi, dword [ebx + eax*4 + 0x28]
imul ecx, eax, 0xda0
xorps xmm0, xmm0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
lea eax, [ebx + ecx + 0x38]
mov dword [esp + 0x30], ecx
lea esi, [ebx + ecx + 0x838]
push 0x800
push 0
push eax
call fcn.0054c590
add esp, 0xc
push 0x480
push 0
push esi
call fcn.0054c590
mov ecx, edi
add esp, 0xc
cmp edi, 0x121
jae 0x47bb49
test ecx, ecx
mov dword [esp + 0x2c], ecx
je 0x47b730
mov eax, dword [esp + 0x30]
lea eax, [ebx + eax + 0xcb8]
nop dword [eax + eax]
movzx edx, byte [eax]
cmp edx, 0xf
ja 0x47badf
inc dword [esp + edx*4 + 0x40]
inc eax
dec ecx
jne 0x47b6b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
jmp 0x47b789
xor edx, edx
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
xor edi, edi
xor ecx, ecx
lea esi, [ecx + ecx]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x90], esi
lea esi, [edi + ecx*2]
lea edi, [esi + esi]
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x10]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0xc]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 8]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xa0], edi
mov edi, dword [esp]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 4]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x24]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x20]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x1c]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xb4], edi
mov edi, dword [esp + 0x18]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
mov dword [esp + 0xb8], edi
mov edi, dword [esp + 0x14]
lea esi, [edi + esi*2]
lea edi, [esi + esi]
lea esi, [ebx + esi*2]
mov dword [esp + 0xbc], edi
lea edi, [esi + esi]
lea esi, [eax + esi*2]
mov dword [esp + 0xc0], edi
lea edi, [esi + esi]
lea esi, [edx + esi*2]
add esi, esi
mov dword [esp + 0xc4], edi
cmp esi, 0x10000
mov dword [esp + 0xc8], esi
je 0x47b8b5
add eax, edx
add eax, ebx
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
add eax, dword [esp + 4]
add eax, dword [esp]
add eax, dword [esp + 8]
add eax, dword [esp + 0xc]
add eax, dword [esp + 0x10]
add eax, dword [esp + 0x3c]
add eax, ecx
cmp eax, 1
ja 0x47baab
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
test edx, edx
je 0x47ba80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov si, 0xffff
mov dword [esp + 4], esi
add eax, ecx
xor ecx, ecx
jmp 0x47b8ec
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jae 0x47ba80
cmp ecx, 0x120
je 0x47baf4
mov esi, ecx
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], esi
lea edi, [ebx + ecx]
movzx ecx, byte [esi + edi + 0xcb8]
test ecx, ecx
je 0x47b8e0
cmp cl, 0x10
ja 0x47bb0d
mov ebx, dword [esp + ecx*4 + 0x88]
mov dword [esp + 8], edi
xor edi, edi
lea edx, [ebx + 1]
mov dword [esp + ecx*4 + 0x88], edx
mov edx, ecx
nop dword [eax + eax]
mov esi, edi
mov edi, ebx
shr ebx, 1
and edi, 1
dec dl
lea edi, [edi + esi*2]
jne 0x47b940
mov edx, dword [esp + 0x2c]
cmp cl, 0xb
jae 0x47b993
mov ebx, dword [esp + 0x28]
mov esi, 1
shl esi, cl
cmp edi, 0x3ff
ja 0x47b8e0
movzx ecx, cx
shl ecx, 9
or ecx, dword [esp + 0xc]
nop word [eax + eax]
mov word [eax + edi*2], cx
add edi, esi
cmp edi, 0x400
jb 0x47b980
jmp 0x47b8e0
mov edx, dword [esp + 8]
and edi, 0x3ff
movzx ebx, word [edx + edi*2 + 0x38]
test bx, bx
je 0x47ba13
mov edi, dword [esp + 4]
shr esi, 8
and esi, 0x7fffff
cmp cl, 0xc
jb 0x47ba2f
add cl, 0xf5
jmp 0x47b9d0
mov edx, dword [esp]
mov edi, edx
mov edx, ebx
dec cl
mov dword [esp], edx
mov edx, edi
je 0x47ba34
shr esi, 1
not ebx
mov edx, esi
and edx, 1
add ebx, edx
movsx edx, bx
movzx ebx, dx
cmp ebx, 0x23f
ja 0x47bb1f
mov dword [esp], edi
mov edi, dword [esp + 8]
movzx ebx, word [edi + edx*2 + 0x838]
test bx, bx
jne 0x47b9c0
mov ebx, dword [esp]
lea edx, [edi + edx*2 + 0x838]
mov word [edx], bx
lea edi, [ebx - 2]
jmp 0x47b9c5
mov ebx, dword [esp + 4]
lea edx, [edx + edi*2 + 0x38]
mov word [edx], bx
lea edi, [ebx - 2]
shr esi, 8
and esi, 0x7fffff
cmp cl, 0xc
jae 0x47b9b9
mov edx, edi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov edx, dword [esp]
shr esi, 1
and esi, 1
not edx
add edx, esi
movsx ecx, dx
movzx edx, cx
cmp edx, 0x240
jae 0x47bb34
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x28]
mov word [esi + ecx*2 + 0x838], dx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
cmp ecx, edx
jb 0x47b8ec
nop word [eax + eax]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47bab1
cmp eax, 2
je 0x47bac2
dec eax
cmp eax, 3
mov dword [ebx + 0x14], eax
jb 0x47b620
push 0x5e9b80
push 3
push eax
call fcn.00570800
add esp, 0xc
ud2
mov ax, 0x1b00
jmp 0x47bad1
mov eax, dword [esp + 0x34]
mov dword [eax + 0xc], 0
mov ax, 0xc00
jmp 0x47bad1
mov eax, dword [esp + 0x34]
mov dword [eax + 0xc], 0
mov ax, 0xa00
movzx eax, ax
or eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, dl
push 0x5e9ba0
push 0x10
push eax
call fcn.00570800
add esp, 0xc
ud2
push 0x5e9bb0
push 0x120
push 0x120
call fcn.00570800
add esp, 0xc
ud2
push 0x5e9bc0
push 0x11
push ecx
call fcn.00570800
add esp, 0xc
ud2
push 0x5e9bd0
push 0x240
push edx
call fcn.00570800
add esp, 0xc
ud2
push 0x5e9be0
push 0x240
push ecx
call fcn.00570800
add esp, 0xc
ud2
push 0x5e9b90
push 0x120
push ecx
call fcn.005709d0
add esp, 0xc
ud2