Function at 0x47f490
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 0x47fe43
lea ebx, [ebx]
cmp dword [ebp + 0x154], edi
je 0x47f4e1
mov dword [esp + 0x2c], edi
jmp 0x47fe28
cmp dword [ebp + 0x28], edi
jne 0x47fe28
mov al, byte [edx + 0x1130]
test al, al
mov dword [esp + 0x2c], edi
je 0x47f513
mov eax, dword [ebp + 0x38]
cmp eax, edi
je 0x47f506
mov eax, dword [eax + 0x18]
cmp eax, edi
jne 0x47f50c
mov eax, dword [ebp + 0x16c]
mov dword [edx + esi*4 + 0x1934], eax
cmp esi, 0x20
mov dword [esp + 0x18], edi
jge 0x47f537
mov ecx, edx
call fcn.0047e1b0
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x47f537
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 + 0x5db9a0]
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 0x47f7ce
cmp esi, edx
mov eax, dword [esp + 0x17c]
mov dword [ebp + eax*4 + 0x9c], edx
jle 0x47f71b
jmp 0x47f5b0
mov edx, dword [ebp + 0x124]
cmp esi, edx
jge 0x47f5bc
mov edx, esi
test edx, edx
jle 0x47f657
mov al, byte [ebp + 0x12e]
test al, al
je 0x47f5f5
test ebx, ebx
je 0x47f616
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 0x47f616
mov ecx, dword [ebp + 0x148]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
mov edx, eax
test edx, edx
jne 0x47f616
mov al, byte [ebp + 0x12f]
test al, al
jne 0x47f719
mov al, byte [ebp + 0x12f]
test al, al
jne 0x47f62e
mov eax, dword [esp + 0x17c]
add dword [ebp + eax*4 + 0x9c], edx
test ebx, ebx
je 0x47f63b
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 0x47f711
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 0x47f6bf
mov al, byte [ebp + 0x12c]
test al, al
je 0x47f6ad
mov eax, dword [ebp + 0x128]
test eax, eax
mov byte [ebp + 0x12c], 0
jge 0x47f6b6
neg eax
mov dword [ebp + 0x124], eax
mov dword [ebp + 0x128], 0
mov byte [ebp + 0x12e], 1
jmp 0x47f6c6
mov edx, dword [edi + 4]
mov dword [ebp + 0x124], edx
mov byte [ebp + 0x12e], 1
jmp 0x47f6c6
mov byte [ebp + 0x12e], 0
mov ecx, dword [ebp + 0x168]
test ecx, ecx
je 0x47f711
mov eax, dword [ebp + 0x124]
test eax, eax
je 0x47f711
mov al, byte [ebp + 0x12e]
test al, al
jne 0x47f711
push 1
call fcn.004951c0
test eax, eax
je 0x47f711
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x5db9a0]
shl edx, cl
mov ecx, dword [eax + 0x34]
add edx, dword [ecx + 4]
mov ecx, eax
push edx
call fcn.00499b10
test esi, esi
jg 0x47f5b0
xor edx, edx
mov al, byte [ebp + 0x12d]
test al, al
je 0x47f79d
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 0x47f768
mov dword [esp + 0x84], 0x2b11
mov ecx, 0x8000
mov word [esp + 0x8a], cx
mov word [esp + 0x88], cx
cmp dword [esp + 0x18], edx
je 0x47f79d
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.0047f200
add esp, 0x14
xor edx, edx
mov ecx, dword [ebp + 0x94]
cmp ecx, edx
je 0x47fabf
call fcn.0049a190
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47fabf
mov eax, 1
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x164], eax
jmp 0x47fabf
cmp dword [ebp + 0x14c], edx
je 0x47f999
cmp esi, edx
mov ecx, dword [esp + 0x17c]
mov dword [ebp + ecx*4 + 0x9c], edx
jle 0x47fabf
mov esi, dword [ebp + 0x13c]
mov ecx, dword [ebp + 0x138]
mov eax, dword [esp + 0x20]
sub esi, ecx
cmp eax, esi
jge 0x47f808
mov esi, eax
mov eax, dword [esp + 0x10]
xor edi, edi
test esi, esi
mov dword [esp + 0x24], edi
jle 0x47f83b
mov cl, byte [eax + 0x15]
test cl, cl
je 0x47f824
mov cl, byte [eax + 0x14]
test cl, cl
je 0x47f83b
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 0x47f87e
test esi, esi
je 0x47f87e
test ebx, ebx
je 0x47f86b
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 0x47f936
mov cl, byte [eax + 0x14]
test cl, cl
je 0x47f8d5
mov edx, dword [ebp + 0x84]
dec edx
mov ecx, edx
test ecx, ecx
mov dword [ebp + 0x84], edx
jle 0x47f951
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 0x47f940
test ebx, ebx
mov byte [eax + 0x15], 1
je 0x47f928
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 0x47f7f0
jmp 0x47fabf
test ebx, ebx
je 0x47f986
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 0x47fabf
cmp esi, edx
jle 0x47fabf
mov edi, dword [ebp + 0x13c]
sub edi, dword [ebp + 0x138]
cmp esi, edi
jge 0x47f9b3
mov edi, esi
test edi, edi
jg 0x47fa05
mov ecx, dword [ebp + 0x84]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebp + 0x84], ecx
jle 0x47fa69
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 0x47fa1f
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 0x47fa5f
push 1
call fcn.004951c0
test eax, eax
je 0x47fa5f
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 + 0x5db9a0]
shl edi, cl
mov ecx, eax
push edi
call fcn.00499b10
test esi, esi
jg 0x47f9a1
jmp 0x47fabf
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x47fa81
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x47fa81
mov dword [ebp + 0x164], 1
test ebx, ebx
je 0x47fab8
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 0x47fb50
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 0x47fb22
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.0047e9f0
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 0x47fb93
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x47fb86
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.0047f200
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 0x47fd5a
mov ecx, dword [ebp + 0x150]
test ecx, ecx
je 0x47fc1e
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47fd5a
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.0047e280
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 + 0x5db9a0]
mov eax, dword [esp + 0x2c]
sar edx, cl
push edx
push eax
call fcn.0047e370
add esp, 0x1c
jmp 0x47fd5a
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x47fcfc
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 0x47fc80
call fcn.0049a190
add eax, 0x34
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call fcn.0047e280
add esp, 0xc
jmp 0x47fcbc
cmp edi, ebx
je 0x47fcbc
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x78]
cmp eax, 0x62
je 0x47fc99
cmp eax, 6
je 0x47fc99
cmp eax, 0x61
jne 0x47fcb5
mov ecx, dword [edi + 0x20]
call fcn.0049a190
add eax, 0x34
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call fcn.0047e280
add esp, 0xc
mov edi, dword [edi + 8]
test edi, edi
jne 0x47fc80
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, eax
push ecx
call fcn.0047e280
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 + 0x5db9a0]
mov eax, dword [esp + 0x2c]
sar edx, cl
push edx
push eax
call fcn.0047e370
add esp, 0x1c
jmp 0x47fd5a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47fd5a
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 + 0x5db9a0]
mov eax, dword [esp + 0x20]
sar edx, cl
push edx
push eax
call fcn.0047e370
add esp, 0x10
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x47fe28
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x1cb8]
mov eax, edx
shr eax, 1
not eax
test al, 1
jne 0x47fe28
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, edx
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x5db9a0]
sar eax, cl
mov ebx, 0x7fff
mov edi, 0xffff8000
xor ecx, ecx
test dl, 1
mov dword [esp + 0x10], ebx
mov esi, edi
jne 0x47fdd7
movsx edx, ax
test edx, edx
jle 0x47fe14
mov eax, dword [esp + 0x18]
movsx eax, word [eax + ecx*2]
cmp ebx, eax
jl 0x47fdc4
mov ebx, eax
cmp edi, eax
mov dword [esp + 0x10], ebx
jg 0x47fdce
mov edi, eax
inc ecx
cmp ecx, edx
mov esi, edi
jl 0x47fdb6
jmp 0x47fe14
movsx eax, ax
test eax, eax
mov dword [esp + 0x24], eax
jle 0x47fe14
mov edx, dword [esp + 0x18]
movsx eax, word [edx + ecx*4]
cmp ebx, eax
jl 0x47fdf0
mov ebx, eax
cmp edi, eax
jg 0x47fdf6
mov edi, eax
movsx eax, word [edx + ecx*4 + 2]
cmp dword [esp + 0x10], eax
jl 0x47fe05
mov dword [esp + 0x10], eax
cmp esi, eax
jg 0x47fe0b
mov esi, eax
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
jl 0x47fde2
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 0x47f4d0
cmp dword [esp + 0x2c], edi
je 0x47fe48
inc dword [edx + 8]
jmp 0x47fe4b
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 0x47fff9
cmp esi, edi
mov ebx, dword [edx + ecx*4 + 0x28]
jne 0x47fe8c
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 0x48026a
cmp esi, 1
jne 0x47feb4
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 0x48026a
cmp esi, 2
jne 0x47ff0a
test al, 1
mov ecx, dword [esp + 0xf8]
mov edx, dword [edx + 0x20]
je 0x47fec9
add edx, edx
cmp edx, edi
je 0x48026a
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 0x47feff
test eax, eax
setl al
dec al
and eax, 0xff
mov byte [ebx], al
inc ebx
dec edi
jne 0x47fee0
jmp 0x48026a
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 0x47ff34
add edi, edi
mov dword [esp + 0x10], edi
test edi, edi
jle 0x48026a
jmp 0x47ff42
mov edi, dword [esp + 0x10]
cmp edi, 0x400
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
jl 0x47ff59
mov edi, 0x400
jmp 0x47ff5d
test edi, edi
jle 0x47ff78
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 0x47ff68
mov dword [esp + 0x78], edx
cmp ebp, 1
jle 0x47ffab
lea esi, [esp + 0x7c]
dec ebp
test edi, edi
jle 0x47ffa5
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 0x47ff93
mov ebx, dword [esp + 0x24]
mov dword [esi], ecx
add esi, 4
dec ebp
jne 0x47ff82
test edi, edi
jle 0x47ffe2
mov ecx, dword [esp + 0x14]
add ecx, 0x130
mov edx, edi
jmp 0x47ffc0
mov eax, dword [ecx]
test eax, 0xffff00
je 0x47ffd5
test eax, eax
setl al
dec al
and eax, 0xff
mov byte [ebx], al
inc ebx
add ecx, 4
dec edx
jne 0x47ffc0
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jg 0x47ff3e
jmp 0x48026a
cmp esi, edi
mov ebp, dword [edx + ecx*4 + 0x28]
mov dword [esp + 0x2c], ebp
jne 0x480040
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 0x48026a
mov edi, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x200
add edi, 0x1132
rep stosd dword es:[edi], eax
jmp 0x48026a
cmp esi, 1
jne 0x480068
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 0x4801ca
cmp esi, 2
jne 0x4800cc
test al, 1
mov esi, dword [esp + 0xf8]
mov edx, dword [edx + 0x20]
mov ecx, ebp
je 0x48007f
add edx, edx
cmp edx, edi
je 0x4801ca
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 0x4800be
xor edx, edx
test eax, eax
setge dl
dec edx
and edx, 0xffff0001
add edx, 0x7fff
mov word [ecx], dx
jmp 0x4800c1
mov word [ecx], ax
add ecx, 2
dec ebp
jne 0x480092
jmp 0x4801ca
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 0x4800f2
add ecx, ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x4801ca
mov ebx, dword [esp + 0x78]
mov edi, edi
mov edi, dword [esp + 0x10]
cmp edi, 0x400
jl 0x480113
mov edi, 0x400
jmp 0x480117
test edi, edi
jle 0x480132
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 0x480120
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x28]
cmp eax, 1
jle 0x480178
dec eax
lea esi, [esp + 0x7c]
mov dword [esp + 0x24], eax
test edi, edi
jle 0x48016a
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 0x480152
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 0x480144
test edi, edi
jle 0x4801b8
lea ecx, [edx + 0x130]
mov esi, edi
mov eax, dword [ecx]
movsx ebx, ax
cmp ebx, eax
je 0x4801a7
xor ebx, ebx
test eax, eax
setge bl
dec ebx
and ebx, 0xffff0001
add ebx, 0x7fff
mov word [ebp], bx
jmp 0x4801ab
mov word [ebp], ax
add ebp, 2
add ecx, 4
dec esi
jne 0x480184
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
sub eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jg 0x480100
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x1130]
test al, al
je 0x48026a
test byte [ecx + 0x1cb8], 1
mov esi, dword [ecx + 0x20]
mov ebx, dword [esp + 0x2c]
je 0x480232
lea edi, [esi + esi]
xor esi, esi
xor eax, eax
mov edx, eax
shr edx, 1
cmp eax, edi
jge 0x480216
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 0x480226
mov word [ecx + edx*2 + 0x1132], si
mov word [ecx + edx*2 + 0x1532], si
add eax, 2
cmp eax, 0x400
jl 0x4801f3
jmp 0x48026a
xor edi, edi
xor edx, edx
lea eax, [ecx + 0x1132]
lea esp, [esp]
cmp edx, esi
jge 0x480254
mov cx, word [ebx + edx*2]
mov word [eax + 0x400], cx
mov word [eax], cx
jmp 0x48025e
mov word [eax + 0x400], di
mov word [eax], di
inc edx
add eax, 2
cmp edx, 0x200
jl 0x480240
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [ecx + 0xac], 0
pop ebx
add esp, 0x168
ret 4