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

Disassembly:
sub esp, 0x484
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
cmp byte [esi + 0x152], 8
jne 0x47b753
mov eax, dword [esi + 0x16c]
mov dl, byte [esi + 0x14c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x110]
mov ecx, eax
and al, 2
shr ecx, 1
and cl, 1
shr dl, cl
xor ecx, ecx
mov cl, byte [esi + 0xa0]
shl dl, cl
neg al
sbb al, al
lea ecx, [esp + 0x190]
and al, 4
xor ebx, ebx
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x4a0]
add al, 4
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x33], al
mov dword [esp + 0x3c], ebx
call fcn.004791d0
mov dword [esp + 0x14], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], 0xffff
mov word [esp + 0x38], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [esp + 0x498]
mov word [esp + 0x3a], bx
mov byte [esp + 0xd], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
xor bl, bl
test al, al
mov byte [esp + 0xf], bl
jbe 0x47b6dc
mov eax, dword [esp + 0x494]
push ebp
mov dword [esp + 0x1c], eax
xor eax, eax
cmp word [esp + 0x4a0], ax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x70], eax
jbe 0x47b28d
mov eax, dword [esp + 0x4a4]
mov ecx, dword [esp + 0x4a0]
and eax, 0xff
mov edx, dword [esp + 0x4a8]
mov dword [esp + 0x90], eax
xor ax, ax
mov al, bl
mov dword [esp + 0x20], edx
imul eax, ecx
mov dword [esp + 0x28], eax
mov eax, ecx
and eax, 0xffff
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x90]
and eax, 0xffff
lea edx, [ecx + eax*8]
mov ecx, dword [esp + 0x4ac]
add eax, edx
mov ebp, dword [ecx + eax*4]
xor eax, eax
cmp word [esp + 0x18], ax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x78], eax
jbe 0x47b1c2
movzx dx, byte [esp + 0x14]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x194]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov word [esp + 0x26], dx
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x6c]
xor edi, edi
xor bl, bl
cmp word [esp + 0x26], di
mov dx, word [ecx]
mov word [esp + 0x74], dx
jbe 0x47b157
mov esi, dword [esp + 0x14]
mov ax, word [esp + 0x26]
and esi, 0xff
imul esi, dword [esp + 0x68]
mov ecx, edi
and ecx, 0xffff
add ecx, esi
mov dl, byte [ecx + ebp]
mov cl, byte [esp + 0x2f]
cmp dl, cl
jbe 0x47b068
mov cl, byte [esp + 0x14]
inc bl
shr cl, 1
cmp bl, cl
ja 0x47b077
inc edi
cmp di, ax
jb 0x47b047
mov byte [esp + 0x12], bl
jmp 0x47b157
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x34]
push edx
mov byte [esp + 0x16], bl
call fcn.0044d1c0
test eax, eax
je 0x47b150
mov edx, dword [esp + 0x54]
mov eax, edi
and eax, 0xffff
inc edx
add eax, esi
mov dword [esp + 0x54], edx
cmp byte [eax + ebp], 0xc0
jne 0x47b150
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [edx]
and ecx, 0x80000001
jns 0x47b0c3
dec ecx
or ecx, 0xfffffffe
inc ecx
mov byte [esp + 0x8c], cl
xor edx, edx
mov eax, dword [esp + 0x8c]
and eax, 0xff
mov cx, word [esp + eax*2 + 0x3c]
lea esi, [esp + eax*2 + 0x3c]
test cx, cx
jbe 0x47b125
mov ebx, eax
shl ebx, 6
mov dword [esp + 0x88], ebx
jmp 0x47b0fb
mov ebx, dword [esp + 0x88]
mov ebp, edx
and ebp, 0xffff
add ebp, ebx
mov bx, word [esp + ebp*2 + 0x94]
cmp bx, word [esp + 0x74]
je 0x47b145
inc edx
cmp dx, cx
jb 0x47b0f4
mov ebp, dword [esp + 0x84]
mov bl, byte [esp + 0x12]
mov edx, ecx
shl eax, 6
and edx, 0xffff
add eax, edx
mov dx, word [esp + 0x74]
inc ecx
mov word [esp + eax*2 + 0x94], dx
mov word [esi], cx
jmp 0x47b150
mov ebp, dword [esp + 0x84]
mov bl, byte [esp + 0x12]
cmp di, word [esp + 0x26]
jb 0x47b168
mov ecx, dword [esp + 0x58]
inc ecx
test bl, bl
mov dword [esp + 0x58], ecx
jne 0x47b168
inc dword [esp + 0x78]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x80]
inc edx
add ecx, 2
dec eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x80], eax
jne 0x47b018
cmp word [esp + 0x54], 0x36
jbe 0x47b1c2
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [ecx]
and eax, 0x80000001
jns 0x47b1ae
dec eax
or eax, 0xfffffffe
inc eax
je 0x47b1ba
mov dword [esp + 0x50], 1
jmp 0x47b1c2
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
and eax, 0xffff
shl eax, 1
cmp eax, 0x40
jle 0x47b1fe
cmp cx, 0x40
jbe 0x47b1fe
mov eax, dword [esp + 0x20]
xor edx, edx
mov dx, word [eax]
and edx, 0x80000001
jns 0x47b1f2
dec edx
or edx, 0xfffffffe
inc edx
je 0x47b1fa
inc dword [esp + 0x64]
jmp 0x47b1fe
inc dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
lea eax, [edx - 0xa]
cmp ecx, eax
jle 0x47b237
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [edx]
and ecx, 0x80000001
jns 0x47b22b
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x47b233
inc dword [esp + 0x48]
jmp 0x47b237
inc dword [esp + 0x60]
mov ecx, dword [esp + 0x78]
and ecx, 0xffff
cmp ecx, eax
jle 0x47b266
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [ecx]
and eax, 0x80000001
jns 0x47b25a
dec eax
or eax, 0xfffffffe
inc eax
je 0x47b262
inc dword [esp + 0x44]
jmp 0x47b266
inc dword [esp + 0x70]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
inc edx
add ecx, 2
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x7c], eax
jne 0x47afaf
mov bl, byte [esp + 0x13]
mov ebp, dword [esp + 0x4a0]
mov eax, dword [esp + 0x64]
mov edx, ebp
and eax, 0xffff
and edx, 0xffff
shl eax, 2
cmp eax, edx
mov dword [esp + 0x28], edx
jle 0x47b39c
mov eax, dword [esp + 0x60]
and eax, 0xffff
shl eax, 2
cmp eax, edx
jl 0x47b39c
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jbe 0x47b2e4
mov esi, dword [esp + 0x1c]
mov byte [esi + eax], 0xf0
add eax, 2
cmp eax, ecx
jb 0x47b2d9
xor esi, esi
test bp, bp
jbe 0x47b376
mov ebp, dword [esp + 0x4a8]
xor ecx, ecx
mov cx, word [ebp]
and ecx, 0x80000001
jns 0x47b309
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x47b368
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x4a4]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x4a0]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x4ac]
mov edi, dword [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
inc esi
add ebp, 2
cmp si, word [esp + 0x4a0]
jb 0x47b2f6
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x4a0]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov byte [esp + 0x11], 1
jmp 0x47b3ac
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x1c]
and eax, 0xffff
shl eax, 2
cmp eax, edx
jle 0x47b493
mov eax, dword [esp + 0x48]
and eax, 0xffff
shl eax, 2
cmp eax, edx
jl 0x47b493
xor eax, eax
test ecx, ecx
jbe 0x47b3e1
mov byte [esi + eax], 0xf0
add eax, 2
cmp eax, ecx
jb 0x47b3d6
xor esi, esi
test bp, bp
jbe 0x47b473
mov ebp, dword [esp + 0x4a8]
xor ecx, ecx
mov cx, word [ebp]
and ecx, 0x80000001
jns 0x47b406
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x47b465
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x4a4]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x4a0]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x4ac]
mov edi, dword [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
inc esi
add ebp, 2
cmp si, word [esp + 0x4a0]
jb 0x47b3f3
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x4a0]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov byte [esp + 0x11], 2
cmp word [esp + 0x60], 1
ja 0x47b572
and edi, 0xffff
lea eax, [edx + edx*2]
shl edi, 3
cmp edi, eax
jl 0x47b572
xor eax, eax
test ecx, ecx
jbe 0x47b4c4
mov byte [esi + eax], 0xf0
add eax, 2
cmp eax, ecx
jb 0x47b4b9
xor esi, esi
test bp, bp
jbe 0x47b556
mov ebp, dword [esp + 0x4a8]
xor ecx, ecx
mov cx, word [ebp]
and ecx, 0x80000001
jns 0x47b4e9
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x47b548
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x4a4]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x4a0]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x4ac]
mov edi, dword [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
inc esi
add ebp, 2
cmp si, word [esp + 0x4a0]
jb 0x47b4d6
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov byte [esp + 0x11], 2
cmp word [esp + 0x48], 1
ja 0x47b64e
mov eax, dword [esp + 0x70]
lea edx, [edx + edx*2]
and eax, 0xffff
shl eax, 3
cmp eax, edx
jl 0x47b64e
mov eax, 1
cmp ecx, eax
jbe 0x47b5a9
mov byte [esi + eax], 0xf0
add eax, 2
cmp eax, ecx
jb 0x47b59e
xor esi, esi
test bp, bp
jbe 0x47b639
mov ebp, dword [esp + 0x4a8]
xor eax, eax
mov ax, word [ebp]
and eax, 0x80000001
jns 0x47b5cd
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x47b62b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x4a4]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x4a0]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x4ac]
mov edi, dword [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
inc esi
add ebp, 2
cmp si, word [esp + 0x4a0]
jb 0x47b5bb
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], 1
mov byte [esp + 0x11], 1
mov al, byte [esp + 0x49c]
inc bl
add esi, ecx
cmp bl, al
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], esi
jb 0x47af4b
mov eax, dword [esp + 0x38]
pop ebp
test eax, eax
je 0x47b6dc
mov al, byte [esp + 0xd]
cmp al, 1
jne 0x47b6a9
cmp word [esp + 0x38], 7
jbe 0x47b698
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x47b698
mov eax, dword [esp + 0x30]
mov dword [eax + 0x34a0], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x484
ret 0x18
cmp al, 2
jne 0x47b698
cmp word [esp + 0x3a], 7
jbe 0x47b698
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x47b698
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
mov dword [ecx + 0x34a0], 1
pop ebx
add esp, 0x484
ret 0x18
mov edx, dword [esp + 0x3a]
mov eax, dword [esp + 0x38]
and edx, 0xffff
and eax, 0xffff
add edx, eax
cmp edx, 0xe
jle 0x47b714
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x47b714
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x47b714
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x34a0], 1
mov eax, 7
cmp word [esp + 0x38], ax
jbe 0x47b736
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x47b736
mov edx, dword [esp + 0x30]
mov dword [edx + 0x34a0], 1
cmp word [esp + 0x3a], ax
jbe 0x47b753
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x47b753
mov eax, dword [esp + 0x30]
mov dword [eax + 0x34a0], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x484
ret 0x18