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

Disassembly:
sub esp, 0x168
push ebx
push ebp
mov edx, ecx
push esi
push edi
xor eax, eax
mov ecx, 0x20
lea edi, [edx + 0x1934]
rep stosd dword es:[edi], eax
mov ebp, dword [edx + 4]
xor edi, edi
xor esi, esi
cmp ebp, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
je 0x47fce3
lea ebx, [ebx]
cmp dword [ebp + 0x154], edi
je 0x47f381
mov dword [esp + 0x2c], edi
jmp 0x47fcc8
cmp dword [ebp + 0x28], edi
jne 0x47fcc8
mov al, byte [edx + 0x1130]
test al, al
mov dword [esp + 0x2c], edi
je 0x47f3b3
mov eax, dword [ebp + 0x38]
cmp eax, edi
je 0x47f3a6
mov eax, dword [eax + 0x18]
cmp eax, edi
jne 0x47f3ac
mov eax, dword [ebp + 0x16c]
mov dword [edx + esi*4 + 0x1934], eax
cmp esi, 0x20
mov dword [esp + 0x18], edi
jge 0x47f3d7
mov ecx, edx
call fcn.0047e0c0
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x47f3d7
mov dword [esp + esi*4 + 0xf8], eax
inc esi
mov dword [esp + 0x28], esi
mov edi, dword [ebp + 0x38]
mov eax, dword [edi]
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 2
mov edx, 0
setne dl
mov ecx, dword [ecx*4 + 0x5db958]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
inc edx
test al, 1
mov eax, 0
setne al
inc eax
imul edx, eax
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0xc]
sar esi, cl
xor edx, edx
cmp eax, edx
mov dword [esp + 0x20], esi
je 0x47f66e
cmp esi, edx
mov eax, dword [esp + 0x17c]
mov dword [ebp + eax*4 + 0x9c], edx
jle 0x47f5bb
jmp 0x47f450
mov edx, dword [ebp + 0x124]
cmp esi, edx
jge 0x47f45c
mov edx, esi
test edx, edx
jle 0x47f4f7
mov al, byte [ebp + 0x12e]
test al, al
je 0x47f495
test ebx, ebx
je 0x47f4b6
mov ecx, edx
imul ecx, dword [esp + 0x1c]
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
jmp 0x47f4b6
mov ecx, dword [ebp + 0x148]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
mov edx, eax
test edx, edx
jne 0x47f4b6
mov al, byte [ebp + 0x12f]
test al, al
jne 0x47f5b9
mov al, byte [ebp + 0x12f]
test al, al
jne 0x47f4ce
mov eax, dword [esp + 0x17c]
add dword [ebp + eax*4 + 0x9c], edx
test ebx, ebx
je 0x47f4db
mov ecx, edx
imul ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [ebp + 0x124]
sub esi, edx
sub ecx, edx
test edx, edx
mov dword [esp + 0x20], esi
mov dword [ebp + 0x124], ecx
jg 0x47f5b1
push ebp
call dword [ebp + 0x90]
add esp, 4
neg eax
sbb al, al
inc al
mov byte [ebp + 0x12f], al
mov eax, dword [ebp + 0x124]
test eax, eax
jg 0x47f55f
mov al, byte [ebp + 0x12c]
test al, al
je 0x47f54d
mov eax, dword [ebp + 0x128]
test eax, eax
mov byte [ebp + 0x12c], 0
jge 0x47f556
neg eax
mov dword [ebp + 0x124], eax
mov dword [ebp + 0x128], 0
mov byte [ebp + 0x12e], 1
jmp 0x47f566
mov edx, dword [edi + 4]
mov dword [ebp + 0x124], edx
mov byte [ebp + 0x12e], 1
jmp 0x47f566
mov byte [ebp + 0x12e], 0
mov ecx, dword [ebp + 0x168]
test ecx, ecx
je 0x47f5b1
mov eax, dword [ebp + 0x124]
test eax, eax
je 0x47f5b1
mov al, byte [ebp + 0x12e]
test al, al
jne 0x47f5b1
push 1
call fcn.00494d50
test eax, eax
je 0x47f5b1
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x5db958]
shl edx, cl
mov ecx, dword [eax + 0x34]
add edx, dword [ecx + 4]
mov ecx, eax
push edx
call fcn.004996f0
test esi, esi
jg 0x47f450
xor edx, edx
mov al, byte [ebp + 0x12d]
test al, al
je 0x47f63d
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x12d], 0
mov eax, dword [eax + 0xc]
cmp eax, 0x2b11
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], edx
mov word [esp + 0x82], dx
mov word [esp + 0x80], dx
mov dword [esp + 0x84], eax
jl 0x47f608
mov dword [esp + 0x84], 0x2b11
mov ecx, 0x8000
mov word [esp + 0x8a], cx
mov word [esp + 0x88], cx
cmp dword [esp + 0x18], edx
je 0x47f63d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
push 0
push eax
mov eax, dword [edi]
push edx
push eax
call fcn.0047f0a0
add esp, 0x14
xor edx, edx
mov ecx, dword [ebp + 0x94]
cmp ecx, edx
je 0x47f95f
call fcn.00499d40
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47f95f
mov eax, 1
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x164], eax
jmp 0x47f95f
cmp dword [ebp + 0x14c], edx
je 0x47f839
cmp esi, edx
mov ecx, dword [esp + 0x17c]
mov dword [ebp + ecx*4 + 0x9c], edx
jle 0x47f95f
mov esi, dword [ebp + 0x13c]
mov ecx, dword [ebp + 0x138]
mov eax, dword [esp + 0x20]
sub esi, ecx
cmp eax, esi
jge 0x47f6a8
mov esi, eax
mov eax, dword [esp + 0x10]
xor edi, edi
test esi, esi
mov dword [esp + 0x24], edi
jle 0x47f6db
mov cl, byte [eax + 0x15]
test cl, cl
je 0x47f6c4
mov cl, byte [eax + 0x14]
test cl, cl
je 0x47f6db
mov ecx, dword [ebp + 0x148]
mov edx, dword [ecx]
push esi
push ebx
call dword [edx + 4]
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x17c]
mov edx, dword [ebp + ecx*4 + 0x9c]
add edx, edi
cmp edi, esi
mov dword [ebp + ecx*4 + 0x9c], edx
jl 0x47f71e
test esi, esi
je 0x47f71e
test ebx, ebx
je 0x47f70b
mov eax, esi
imul eax, dword [esp + 0x1c]
add ebx, eax
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x138]
sub ecx, esi
add eax, esi
jmp 0x47f7d6
mov cl, byte [eax + 0x14]
test cl, cl
je 0x47f775
mov edx, dword [ebp + 0x84]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [ebp + 0x84], edx
jle 0x47f7f1
mov edx, dword [ebp + 0x88]
mov ecx, dword [esp + 0x30]
sar edx, cl
mov ecx, dword [ebp + 0x148]
push 1
mov dword [ebp + 0x138], edx
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax]
mov edx, dword [ebp + 0x138]
mov ecx, dword [ebp + 0x148]
mov eax, dword [ecx]
push edx
push 0
call dword [eax + 4]
jmp 0x47f7e0
test ebx, ebx
mov byte [eax + 0x15], 1
je 0x47f7c8
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
shr eax, 1
mov ecx, esi
sub ecx, edi
imul edi, edx
not eax
imul ecx, edx
and eax, 1
shl eax, 7
add edi, ebx
mov bl, al
mov bh, bl
mov edx, ecx
shr ecx, 2
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
mov eax, esi
imul eax, dword [esp + 0x1c]
add ebx, eax
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x138]
sub ecx, esi
add eax, edi
mov dword [esp + 0x20], ecx
mov dword [ebp + 0x138], eax
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x47f690
jmp 0x47f95f
test ebx, ebx
je 0x47f826
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x1c]
shr eax, 1
not eax
and eax, 1
shl eax, 7
mov edi, ebx
mov bl, al
mov bh, bl
mov edx, ecx
shr ecx, 2
mov eax, ebx
shl eax, 0x10
mov ax, bx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 1
mov dword [ebp + 0x164], eax
mov dword [ebp + 0x28], eax
jmp 0x47f95f
cmp esi, edx
jle 0x47f95f
mov edi, dword [ebp + 0x13c]
sub edi, dword [ebp + 0x138]
cmp esi, edi
jge 0x47f853
mov edi, esi
test edi, edi
jg 0x47f8a5
mov ecx, dword [ebp + 0x84]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebp + 0x84], ecx
jle 0x47f909
mov eax, dword [ebp + 0x88]
mov ecx, dword [esp + 0x30]
sar eax, cl
mov ecx, dword [ebp + 0x148]
push 1
mov dword [ebp + 0x138], eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx]
mov eax, dword [ebp + 0x138]
mov ecx, dword [ebp + 0x148]
mov edx, dword [ecx]
push eax
push 0
call dword [edx + 4]
mov ecx, dword [ebp + 0x148]
mov edx, dword [ecx]
push edi
push ebx
call dword [edx + 4]
test ebx, ebx
je 0x47f8bf
mov eax, edi
imul eax, dword [esp + 0x1c]
add ebx, eax
add dword [ebp + 0x138], edi
mov ecx, dword [ebp + 0x168]
sub esi, edi
test ecx, ecx
je 0x47f8ff
push 1
call fcn.00494d50
test eax, eax
je 0x47f8ff
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edi, dword [ebp + 0x138]
sar edx, 2
and edx, 3
mov ecx, dword [edx*4 + 0x5db958]
shl edi, cl
mov ecx, eax
push edi
call fcn.004996f0
test esi, esi
jg 0x47f841
jmp 0x47f95f
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x47f921
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x47f921
mov dword [ebp + 0x164], 1
test ebx, ebx
je 0x47f958
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
shr eax, 1
not eax
and eax, 1
shl eax, 7
mov edi, ebx
mov bl, al
mov bh, bl
mov ecx, esi
imul ecx, dword [esp + 0x1c]
mov eax, ebx
shl eax, 0x10
mov edx, ecx
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x28], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47f9f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
sar esi, cl
mov ecx, dword [esp + 0x1c]
lea edi, [esp + 0x4c]
dec esi
imul esi, ecx
mov ebx, ecx
shr ecx, 2
add esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x140]
test ecx, ecx
jne 0x47f9c2
mov ecx, ebx
shr ecx, 2
mov esi, edx
lea edi, [ebp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x140], 1
mov ecx, dword [eax + 0x1cb8]
mov eax, dword [eax + 0xc]
lea esi, [ebp + 0x144]
push esi
push ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, 0xffffff0f
push ecx
push eax
push edx
call fcn.0047e900
mov ecx, dword [esp + 0x60]
add esp, 0x14
mov dword [esi], ecx
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
lea eax, [ebp + 0x3c]
jle 0x47fa33
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x47fa26
mov edx, dword [ebp + 0x134]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x1cb8]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0047f0a0
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
add dword [ebp + 0x134], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47fbfa
mov ecx, dword [ebp + 0x150]
test ecx, ecx
je 0x47fabe
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47fbfa
add eax, 0x658
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], edx
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x6c], eax
call fcn.0047e190
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1cb8]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [ecx + 0xc]
push eax
sar eax, 2
and eax, 3
mov ecx, dword [eax*4 + 0x5db958]
mov eax, dword [esp + 0x2c]
sar edx, cl
push edx
push eax
call fcn.0047e280
add esp, 0x1c
jmp 0x47fbfa
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x47fb9c
mov eax, dword [ecx + 0x2c]
mov esi, dword [eax + 0xd0]
mov edi, dword [ecx + 0x54]
mov edx, dword [ecx + 0x50]
mov ebx, dword [edx + 0xe0]
mov eax, 0x64
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
xor eax, eax
add esi, 0x658
cmp edi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
jne 0x47fb20
call fcn.00499d40
add eax, 0x34
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
add esp, 0xc
jmp 0x47fb5c
cmp edi, ebx
je 0x47fb5c
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x78]
cmp eax, 0x62
je 0x47fb39
cmp eax, 6
je 0x47fb39
cmp eax, 0x61
jne 0x47fb55
mov ecx, dword [edi + 0x20]
call fcn.00499d40
add eax, 0x34
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call fcn.0047e190
add esp, 0xc
mov edi, dword [edi + 8]
test edi, edi
jne 0x47fb20
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, eax
push ecx
call fcn.0047e190
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1cb8]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ecx + 0xc]
push eax
sar eax, 2
and eax, 3
mov ecx, dword [eax*4 + 0x5db958]
mov eax, dword [esp + 0x2c]
sar edx, cl
push edx
push eax
call fcn.0047e280
add esp, 0x1c
jmp 0x47fbfa
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47fbfa
add eax, 0x658
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x1cb8]
lea edx, [esp + 0x64]
push edx
mov edx, dword [ecx + 0xc]
push eax
sar eax, 2
and eax, 3
mov ecx, dword [eax*4 + 0x5db958]
mov eax, dword [esp + 0x20]
sar edx, cl
push edx
push eax
call fcn.0047e280
add esp, 0x10
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x47fcc8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x1cb8]
mov eax, edx
shr eax, 1
not eax
test al, 1
jne 0x47fcc8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, edx
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x5db958]
sar eax, cl
mov ebx, 0x7fff
mov edi, 0xffff8000
xor ecx, ecx
test dl, 1
mov dword [esp + 0x10], ebx
mov esi, edi
jne 0x47fc77
movsx edx, ax
test edx, edx
jle 0x47fcb4
mov eax, dword [esp + 0x18]
movsx eax, word [eax + ecx*2]
cmp ebx, eax
jl 0x47fc64
mov ebx, eax
cmp edi, eax
mov dword [esp + 0x10], ebx
jg 0x47fc6e
mov edi, eax
inc ecx
cmp ecx, edx
mov esi, edi
jl 0x47fc56
jmp 0x47fcb4
movsx eax, ax
test eax, eax
mov dword [esp + 0x24], eax
jle 0x47fcb4
mov edx, dword [esp + 0x18]
movsx eax, word [edx + ecx*4]
cmp ebx, eax
jl 0x47fc90
mov ebx, eax
cmp edi, eax
jg 0x47fc96
mov edi, eax
movsx eax, word [edx + ecx*4 + 2]
cmp dword [esp + 0x10], eax
jl 0x47fca5
mov dword [esp + 0x10], eax
cmp esi, eax
jg 0x47fcab
mov esi, eax
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
jl 0x47fc82
mov eax, dword [esp + 0x10]
sub edi, ebx
sub esi, eax
mov dword [ebp + 0x15c], edi
mov dword [ebp + 0x160], esi
mov ebp, dword [ebp + 0x20]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x47f370
cmp dword [esp + 0x2c], edi
je 0x47fce8
inc dword [edx + 8]
jmp 0x47fceb
mov dword [edx + 8], edi
mov eax, dword [edx + 0x1cb8]
mov ecx, eax
shr ecx, 1
not ecx
test cl, 1
mov ecx, dword [esp + 0x17c]
je 0x47fe99
cmp esi, edi
mov ebx, dword [edx + ecx*4 + 0x28]
jne 0x47fd2c
mov ecx, dword [edx + 0x24]
mov edx, ecx
shr ecx, 2
mov eax, 0x80808080
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x48010a
cmp esi, 1
jne 0x47fd54
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
mov esi, dword [esp + 0xf8]
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x48010a
cmp esi, 2
jne 0x47fdaa
test al, 1
mov ecx, dword [esp + 0xf8]
mov edx, dword [edx + 0x20]
je 0x47fd69
add edx, edx
cmp edx, edi
je 0x48010a
mov esi, dword [esp + 0xfc]
sub esi, ecx
mov edi, edx
lea esp, [esp]
movzx eax, byte [esi + ecx]
movzx edx, byte [ecx]
lea eax, [eax + edx - 0x80]
inc ecx
test eax, 0xffff00
je 0x47fd9f
test eax, eax
setl al
dec al
and eax, 0xff
mov byte [ebx], al
inc ebx
dec edi
jne 0x47fd80
jmp 0x48010a
test al, 1
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0xf8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edi
je 0x47fdd4
add edi, edi
mov dword [esp + 0x10], edi
test edi, edi
jle 0x48010a
jmp 0x47fde2
mov edi, dword [esp + 0x10]
cmp edi, 0x400
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
jl 0x47fdf9
mov edi, 0x400
jmp 0x47fdfd
test edi, edi
jle 0x47fe18
mov eax, dword [esp + 0x14]
add eax, 0x130
mov ecx, edi
movzx esi, byte [edx]
mov dword [eax], esi
inc edx
add eax, 4
dec ecx
jne 0x47fe08
mov dword [esp + 0x78], edx
cmp ebp, 1
jle 0x47fe4b
lea esi, [esp + 0x7c]
dec ebp
test edi, edi
jle 0x47fe45
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
add eax, 0x130
mov edx, edi
movzx ebx, byte [ecx]
add dword [eax], ebx
inc ecx
add eax, 4
dec edx
jne 0x47fe33
mov ebx, dword [esp + 0x24]
mov dword [esi], ecx
add esi, 4
dec ebp
jne 0x47fe22
test edi, edi
jle 0x47fe82
mov ecx, dword [esp + 0x14]
add ecx, 0x130
mov edx, edi
jmp 0x47fe60
mov eax, dword [ecx]
test eax, 0xffff00
je 0x47fe75
test eax, eax
setl al
dec al
and eax, 0xff
mov byte [ebx], al
inc ebx
add ecx, 4
dec edx
jne 0x47fe60
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jg 0x47fdde
jmp 0x48010a
cmp esi, edi
mov ebp, dword [edx + ecx*4 + 0x28]
mov dword [esp + 0x2c], ebp
jne 0x47fee0
mov ecx, dword [edx + 0x24]
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [edx + 0x1130]
test al, al
je 0x48010a
mov edi, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x200
add edi, 0x1132
rep stosd dword es:[edi], eax
jmp 0x48010a
cmp esi, 1
jne 0x47ff08
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x24]
mov esi, dword [esp + 0xf8]
mov eax, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x48006a
cmp esi, 2
jne 0x47ff6c
test al, 1
mov esi, dword [esp + 0xf8]
mov edx, dword [edx + 0x20]
mov ecx, ebp
je 0x47ff1f
add edx, edx
cmp edx, edi
je 0x48006a
mov edi, dword [esp + 0xfc]
sub edi, esi
mov ebp, edx
movsx edx, word [esi]
movsx eax, word [esi + edi]
add eax, edx
movsx edx, ax
add esi, 2
cmp edx, eax
je 0x47ff5e
xor edx, edx
test eax, eax
setge dl
dec edx
and edx, 0xffff0001
add edx, 0x7fff
mov word [ecx], dx
jmp 0x47ff61
mov word [ecx], ax
add ecx, 2
dec ebp
jne 0x47ff32
jmp 0x48006a
test al, 1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea esi, [esp + 0xf8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x20]
mov dword [esp + 0x10], ecx
je 0x47ff92
add ecx, ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x48006a
mov ebx, dword [esp + 0x78]
mov edi, edi
mov edi, dword [esp + 0x10]
cmp edi, 0x400
jl 0x47ffb3
mov edi, 0x400
jmp 0x47ffb7
test edi, edi
jle 0x47ffd2
lea eax, [edx + 0x130]
mov ecx, edi
nop
movsx esi, word [ebx]
mov dword [eax], esi
add ebx, 2
add eax, 4
dec ecx
jne 0x47ffc0
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x28]
cmp eax, 1
jle 0x480018
dec eax
lea esi, [esp + 0x7c]
mov dword [esp + 0x24], eax
test edi, edi
jle 0x48000a
mov ecx, dword [esi]
lea eax, [edx + 0x130]
mov edx, edi
movsx ebx, word [ecx]
add dword [eax], ebx
add ecx, 2
add eax, 4
dec edx
jne 0x47fff2
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
add esi, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x47ffe4
test edi, edi
jle 0x480058
lea ecx, [edx + 0x130]
mov esi, edi
mov eax, dword [ecx]
movsx ebx, ax
cmp ebx, eax
je 0x480047
xor ebx, ebx
test eax, eax
setge bl
dec ebx
and ebx, 0xffff0001
add ebx, 0x7fff
mov word [ebp], bx
jmp 0x48004b
mov word [ebp], ax
add ebp, 2
add ecx, 4
dec esi
jne 0x480024
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jg 0x47ffa0
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x1130]
test al, al
je 0x48010a
test byte [ecx + 0x1cb8], 1
mov esi, dword [ecx + 0x20]
mov ebx, dword [esp + 0x2c]
je 0x4800d2
lea edi, [esi + esi]
xor esi, esi
xor eax, eax
mov edx, eax
shr edx, 1
cmp eax, edi
jge 0x4800b6
mov bp, word [ebx + eax*2]
mov word [ecx + edx*2 + 0x1132], bp
mov bp, word [ebx + eax*2 + 2]
mov word [ecx + edx*2 + 0x1532], bp
jmp 0x4800c6
mov word [ecx + edx*2 + 0x1132], si
mov word [ecx + edx*2 + 0x1532], si
add eax, 2
cmp eax, 0x400
jl 0x480093
jmp 0x48010a
xor edi, edi
xor edx, edx
lea eax, [ecx + 0x1132]
lea esp, [esp]
cmp edx, esi
jge 0x4800f4
mov cx, word [ebx + edx*2]
mov word [eax + 0x400], cx
mov word [eax], cx
jmp 0x4800fe
mov word [eax + 0x400], di
mov word [eax], di
inc edx
add eax, 2
cmp edx, 0x200
jl 0x4800e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [ecx + 0xac], 0
pop ebx
add esp, 0x168
ret 4