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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x46ad7220
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov cx, word [esi]
test cx, cx
je 0x46ad6750
mov word [edx], cx
inc edx
inc edx
inc esi
inc esi
dec dword [ebp + 0xc]
jne 0x46ad6730
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + 0xc], 0
pop esi
je 0x46ad722a
and word [edx], 0
pop ebp
ret 0xc
and al, 0x78
jmp 0x46ad7230
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
and al, 0x78
mov eax, dword [esp + 0x7c]
mov ebp, dword [esi + ebp]
mov ecx, dword [esp + 0x80]
mov eax, dword [eax + esi]
add edi, ecx
mov ecx, dword [edx + esi]
mov edx, dword [esi]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x14], eax
je 0x46ad7274
mov edi, dword [esp + 0x50]
mov ebp, dword [ebp + edi*8]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x28]
mov edi, dword [ebp + edi*8 + 4]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x68]
cmp ecx, edx
jg 0x46ad75b5
lea esi, [edi + ecx*2]
add esi, ecx
lea ecx, [edi + edx*2]
add ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x10]
mov ebp, eax
sar ecx, 0xe
and ecx, 0xfffffffc
sar eax, 0x10
lea eax, [eax + eax*2]
add eax, dword [ecx + edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
add ecx, edx
movzx edx, byte [eax + 3]
mov dword [esp + 0x1c], edx
movzx edx, byte [eax + ebx + 3]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
movzx edx, byte [eax + 1]
mov dword [esp + 0x24], edx
movzx edx, byte [eax + 4]
mov dword [esp + 0x44], edx
movzx edx, byte [eax + ebx + 1]
mov dword [esp + 0x20], edx
movzx edx, byte [eax + ebx + 4]
mov dword [esp + 0x40], edx
movzx edx, byte [eax + 2]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax]
mov dword [esp + 0x38], edx
movzx edx, byte [eax + 5]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + ebx]
mov dword [esp + 0x4c], edx
movzx edx, byte [eax + ebx + 2]
movzx eax, byte [eax + ebx + 5]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x5c]
and ebp, 0xffff
and edi, 0xffff
cmp esi, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x34], edx
jae 0x46ad74da
mov eax, dword [esp + 0x18]
sub ecx, eax
mov edx, dword [esp + 0x1c]
imul ecx, edi
add ecx, 0x8000
sar ecx, 0x10
add ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, edx
imul eax, edi
add eax, 0x8000
sar eax, 0x10
sub eax, ecx
add eax, edx
mov edx, dword [esp + 0x20]
imul eax, ebp
mov esi, dword [esp + 0x44]
add eax, 0x8000
sar eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
imul edx, edi
add edx, 0x8000
sar edx, 0x10
add edx, ecx
mov ecx, dword [esp + 0x40]
sub ecx, esi
imul ecx, edi
add ecx, 0x8000
sar ecx, 0x10
sub ecx, edx
add ecx, esi
mov esi, dword [esp + 0x34]
imul ecx, ebp
mov ebx, dword [esp + 0x4c]
add ecx, 0x8000
sar ecx, 0x10
add ecx, edx
mov edx, dword [esp + 0x38]
sub esi, edx
imul esi, edi
add esi, 0x8000
sar esi, 0x10
add esi, edx
mov edx, dword [esp + 0x48]
sub edx, ebx
imul edx, edi
add edx, 0x8000
sar edx, 0x10
sub edx, esi
add edx, ebx
mov ebx, dword [esp + 0x10]
imul edx, ebp
mov ebp, dword [esp + 0x54]
add edx, 0x8000
sar edx, 0x10
add edx, esi
mov esi, dword [esp + 0x14]
mov edi, esi
and edi, 0xffff
mov dword [esp + 0x60], edi
mov edi, ebx
sar ebx, 0xe
and ebx, 0xfffffffc
sar esi, 0x10
lea esi, [esi + esi*2]
add esi, dword [ebx + ebp]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
add ebp, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
and edi, 0xffff
add ebp, ebx
movzx ebx, byte [esi]
mov dword [esp + 0x18], ebx
movzx ebx, byte [esi + 3]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x84]
movzx ebp, byte [esi + ebx]
mov dword [esp + 0x64], ebp
movzx ebp, byte [esi + ebx + 3]
mov dword [esp + 0x3c], ebp
movzx ebp, byte [esi + 1]
mov dword [esp + 0x24], ebp
movzx ebp, byte [esi + 4]
mov dword [esp + 0x44], ebp
movzx ebp, byte [esi + ebx + 1]
mov dword [esp + 0x20], ebp
movzx ebp, byte [esi + ebx + 4]
mov dword [esp + 0x40], ebp
movzx ebp, byte [esi + 2]
mov dword [esp + 0x38], ebp
movzx ebp, byte [esi + 5]
mov dword [esp + 0x4c], ebp
movzx ebp, byte [esi + ebx + 2]
movzx esi, byte [esi + ebx + 5]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x58]
mov byte [esi], al
mov eax, dword [esp + 0x5c]
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x64]
mov byte [esi + 2], dl
add esi, 3
cmp esi, eax
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x58], esi
jb 0x46ad733f
mov edx, dword [esp + 0x34]
sub ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
imul ecx, edi
add ecx, 0x8000
sar ecx, 0x10
add ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x24]
sub eax, ecx
imul eax, edi
add eax, 0x8000
sar eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
imul edx, edi
add edx, 0x8000
sar edx, 0x10
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
imul ecx, edi
add ecx, 0x8000
sar ecx, 0x10
sub ecx, edx
add ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x64]
imul ecx, ebp
add ecx, 0x8000
sar ecx, 0x10
add cl, dl
mov edx, dword [esp + 0x40]
mov byte [esi], cl
mov ecx, dword [esp + 0x44]
sub edx, ecx
imul edx, edi
add edx, 0x8000
sar edx, 0x10
sub edx, eax
add edx, ecx
mov ecx, dword [esp + 0x4c]
imul edx, ebp
add edx, 0x8000
sar edx, 0x10
add dl, al
mov eax, dword [esp + 0x60]
mov byte [esi + 1], dl
mov edx, dword [esp + 0x48]
sub edx, ecx
imul edx, edi
add edx, 0x8000
mov edi, dword [esp + 0x68]
sar edx, 0x10
sub edx, eax
add edx, ecx
imul edx, ebp
add edx, 0x8000
sar edx, 0x10
add dl, al
mov byte [esi + 2], dl
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], esi
jle 0x46ad7224
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret