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

Disassembly:
sub esp, 0x970
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x16c]
mov dl, byte [eax + 0x14c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x110]
shr ecx, 1
and cl, 1
xor esi, esi
shr dl, cl
xor ecx, ecx
mov dword [esp + 0x74], eax
mov cl, byte [eax + 0xa0]
mov dword [esp + 0x38], esi
shl dl, cl
mov cl, byte [eax + 0x838]
add cl, 2
mov byte [esp + 0x27], cl
mov ecx, dword [esp + 0x98c]
mov byte [esp + 0x14], dl
lea edx, [esp + 0x7c]
push edx
push ecx
mov ecx, eax
call fcn.004791d0
mov dword [esp + 0x3c], eax
mov ecx, 0x180
or eax, 0xffffffff
lea edi, [esp + 0x37c]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x984]
xor bl, bl
test al, al
mov dword [esp + 0x5c], esi
mov byte [esp + 0xf], bl
jbe 0x47c275
mov edx, dword [esp + 0x980]
push ebp
mov dword [esp + 0x2c], edx
jmp 0x47bb21
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x98c]
xor ecx, ecx
cmp ax, cx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
jbe 0x47be4c
xor cx, cx
mov edx, dword [esp + 0x990]
mov cl, bl
mov esi, dword [esp + 0x994]
imul ecx, eax
and edx, 0xff
and eax, 0xffff
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
jmp 0x47bb82
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
mov eax, ecx
and eax, 0xffff
lea ecx, [edx + eax*8]
mov edx, dword [esp + 0x998]
add eax, ecx
mov eax, dword [edx + eax*4]
xor edx, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x40]
cmp ax, dx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], edx
jbe 0x47bc48
movzx di, byte [esp + 0x18]
and eax, 0xffff
mov dword [esp + 0x30], edx
mov dl, byte [esp + 0x2b]
mov dword [esp + 0x38], eax
xor al, al
xor esi, esi
test di, di
jbe 0x47bc1b
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
and ecx, 0xff
imul ecx, dword [esp + 0x30]
mov ebx, esi
and ebx, 0xffff
add ebx, ecx
cmp byte [ebx + ebp], dl
jbe 0x47bc05
mov bl, byte [esp + 0x18]
inc al
shr bl, 1
cmp al, bl
ja 0x47bc0d
inc esi
cmp si, di
jb 0x47bbea
jmp 0x47bc1b
mov ebx, dword [esp + 0x1c]
inc ebx
cmp si, di
mov dword [esp + 0x1c], ebx
jb 0x47bc2c
mov esi, dword [esp + 0x58]
inc esi
test al, al
mov dword [esp + 0x58], esi
jne 0x47bc2c
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
inc ecx
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
jne 0x47bbce
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, eax
and edx, 0xffff
and ecx, 0xffff
shl edx, 1
cmp edx, ecx
mov dword [esp + 0x70], ecx
jle 0x47bc7e
mov edx, dword [esp + 0x34]
xor eax, eax
mov ax, word [edx]
and eax, 0x80000001
jns 0x47bdb6
dec eax
or eax, 0xfffffffe
inc eax
jmp 0x47bdb6
test ax, ax
jbe 0x47bdb6
movzx bp, byte [esp + 0x18]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x80]
mov word [esp + 0x30], bp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x38]
xor esi, esi
mov ax, word [edx]
xor dl, dl
test bp, bp
mov word [esp + 0x68], ax
jbe 0x47bd8f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x6c]
and ecx, 0xff
imul ecx, dword [esp + 0x1c]
mov al, byte [eax + 0x838]
mov ebx, esi
and ebx, 0xffff
add ebx, ecx
cmp byte [ebx + edi], al
jbe 0x47bcfe
mov bl, byte [esp + 0x18]
inc dl
shr bl, 1
cmp dl, bl
ja 0x47bd09
inc esi
cmp si, bp
jb 0x47bce3
jmp 0x47bd8f
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov cx, word [edx]
and ecx, 0x80000001
jns 0x47bd1f
dec ecx
or ecx, 0xfffffffe
inc ecx
mov byte [esp + 0x7c], cl
xor esi, esi
mov ecx, dword [esp + 0x7c]
and ecx, 0xff
mov dx, word [esp + ecx*2 + 0x60]
lea edi, [esp + ecx*2 + 0x60]
test dx, dx
jbe 0x47bd68
mov eax, dword [esp + 0x68]
lea ebp, [ecx + ecx*2]
shl ebp, 7
mov ebx, esi
and ebx, 0xffff
add ebx, ebp
cmp word [esp + ebx*2 + 0x380], ax
je 0x47bd8a
inc esi
cmp si, dx
jb 0x47bd47
mov bp, word [esp + 0x30]
jmp 0x47bd6c
mov eax, dword [esp + 0x68]
lea ecx, [ecx + ecx*2]
mov esi, edx
shl ecx, 7
and esi, 0xffff
add ecx, esi
inc edx
mov word [edi], dx
mov word [esp + ecx*2 + 0x380], ax
jmp 0x47bd8f
mov bp, word [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
inc edx
add ecx, 2
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x74], eax
jne 0x47bcad
mov ecx, dword [esp + 0x70]
lea eax, [ecx - 0xa]
mov ecx, dword [esp + 0x58]
and ecx, 0xffff
cmp ecx, eax
jle 0x47bde9
mov ecx, dword [esp + 0x34]
xor edx, edx
mov dx, word [ecx]
and edx, 0x80000001
jns 0x47bddd
dec edx
or edx, 0xfffffffe
inc edx
je 0x47bde5
inc dword [esp + 0x54]
jmp 0x47bde9
inc dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
and ecx, 0xffff
cmp ecx, eax
jle 0x47be19
mov eax, dword [esp + 0x34]
xor edx, edx
mov dx, word [eax]
and edx, 0x80000001
jns 0x47be0d
dec edx
or edx, 0xfffffffe
inc edx
je 0x47be15
inc dword [esp + 0x44]
jmp 0x47be19
inc dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
inc edx
add ecx, 2
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], eax
jne 0x47bb7a
cmp word [esp + 0x48], 1
mov bl, byte [esp + 0x13]
ja 0x47bf46
mov edi, dword [esp + 0x98c]
mov ecx, dword [esp + 0x44]
mov edx, edi
and ecx, 0xffff
and edx, 0xffff
shl ecx, 3
lea eax, [edx + edx*2]
mov dword [esp + 0x50], edx
cmp ecx, eax
jl 0x47bf4a
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
jbe 0x47be91
mov esi, dword [esp + 0x2c]
add eax, 2
cmp eax, ecx
mov byte [esi + eax - 2], 0xf0
jb 0x47be81
xor esi, esi
test di, di
jbe 0x47bf3c
mov eax, dword [esp + 0x994]
mov ebp, dword [esp + 0x998]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
xor eax, eax
mov ax, word [edi]
and eax, 0x80000001
jns 0x47bec3
dec eax
or eax, 0xfffffffe
inc eax
jne 0x47bf20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x990]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x98c]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [ebp + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x50]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
inc esi
add edi, 2
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x98c]
cmp si, di
jb 0x47beae
mov dword [esp + 0x3c], 1
jmp 0x47bf55
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x98c]
mov eax, 1
cmp word [esp + 0x54], ax
ja 0x47c028
mov esi, dword [esp + 0x4c]
lea edx, [edx + edx*2]
and esi, 0xffff
shl esi, 3
cmp esi, edx
jl 0x47c028
cmp ecx, eax
jbe 0x47bf90
mov edx, dword [esp + 0x2c]
mov byte [edx + eax], 0xf0
add eax, 2
cmp eax, ecx
jb 0x47bf85
xor esi, esi
test di, di
jbe 0x47c020
mov ebp, dword [esp + 0x994]
xor eax, eax
mov ax, word [ebp]
and eax, 0x80000001
jns 0x47bfb4
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x47c012
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xff
imul ecx, edx
xor dx, dx
mov edi, dword [esp + 0x990]
mov dl, bl
and edi, 0xff
imul edx, dword [esp + 0x98c]
add edx, esi
or eax, 0xffffffff
and edx, 0xffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x998]
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 + 0x98c]
jb 0x47bfa2
mov dword [esp + 0x3c], 1
mov ebp, dword [esp + 0x40]
mov eax, 0x92492493
and ebp, 0xffff
mov dword [esp + 0x20], 8
imul ebp
add edx, ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 8
jl 0x47c056
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x98c]
shr eax, 1
lea ecx, [eax - 2]
mov eax, dword [esp + 0x44]
and eax, 0xffff
mov dword [esp + 0x5c], ecx
cmp eax, ecx
jl 0x47c145
mov cx, bx
shr cx, 2
cmp word [esp + 0x48], cx
jae 0x47c145
mov dx, word [esp + 0x60]
cmp dx, word [esp + 0x20]
jb 0x47c145
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
jbe 0x47c0b7
mov edx, dword [esp + 0x2c]
add eax, 2
cmp eax, ecx
mov byte [edx + eax - 2], 0xf0
jb 0x47c0a7
xor esi, esi
test bx, bx
jbe 0x47c13d
mov eax, dword [esp + 0x994]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [edx]
and ecx, 0x80000001
jns 0x47c0df
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x47c12c
movzx dx, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
imul edx, ebx
mov edi, dword [esp + 0x990]
and ecx, 0xff
add edx, esi
imul ecx, ebp
and edx, 0xffff
and edi, 0xff
or eax, 0xffffffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x998]
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
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 2
cmp si, bx
mov dword [esp + 0x14], ecx
jb 0x47c0c9
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
and eax, 0xffff
cmp eax, ecx
jl 0x47c234
mov ax, bx
shr ax, 2
cmp word [esp + 0x54], ax
jae 0x47c234
mov cx, word [esp + 0x20]
cmp word [esp + 0x62], cx
jb 0x47c234
mov ecx, dword [esp + 0x24]
mov eax, 1
cmp ecx, eax
jbe 0x47c199
mov edx, dword [esp + 0x2c]
add eax, 2
cmp eax, ecx
mov byte [edx + eax - 2], 0xf0
jb 0x47c189
xor esi, esi
test bx, bx
jbe 0x47c22a
mov eax, dword [esp + 0x994]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [edx]
and ecx, 0x80000001
jns 0x47c1c5
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x47c215
movzx dx, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
imul edx, ebx
mov edi, dword [esp + 0x990]
and ecx, 0xff
add edx, esi
imul ecx, ebp
and edx, 0xffff
and edi, 0xff
or eax, 0xffffffff
lea edx, [edx + edx*8]
add edx, edi
mov edi, dword [esp + 0x998]
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
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 2
cmp si, bx
mov dword [esp + 0x14], ecx
jb 0x47c1af
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], 1
jmp 0x47c238
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
add edx, ecx
mov cl, byte [esp + 0x988]
inc al
mov dword [esp + 0x2c], edx
cmp al, cl
mov byte [esp + 0x13], al
jb 0x47bb1d
mov eax, dword [esp + 0x3c]
pop ebp
test eax, eax
je 0x47c275
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x970
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x970
ret 0x18