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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
xor edx, edx
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x10
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
ja 0x46adee
mov ecx, dword [esi]
movzx ebp, byte [ecx]
mov edi, dword [esi + 8]
shl edi, 8
or edi, ebp
movzx ebp, byte [ecx + 1]
shl edi, 8
or edi, ebp
add ecx, 2
add eax, 0x10
mov dword [esi + 8], edi
mov dword [esi], ecx
mov dword [esi + 4], eax
xor edi, edi
mov ebp, edx
add dword [esi + 4], 0xfffffffe
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add dword [esi + 0xc], 2
shr eax, cl
mov ecx, dword [esp + 0xa0]
and eax, 3
cmp eax, 3
mov dword [esp + 0x28], eax
mov dword [ecx + 0xc], eax
ja case.default.0x46ae18
jmp dword [eax*4 + 0x46b3e8]
mov edx, 2
mov eax, esi
call fcn.004688f0
mov ecx, eax
mov ebx, 1
mov edx, 1
mov eax, esi
shl ebx, cl
call fcn.004688f0
cmp ebx, edx
mov dword [esp + 0x5c], eax
mov eax, edx
jle 0x46ae5f
lea ebx, [ebx]
mov edx, dword [esp + 0x5c]
mov dword [esp + eax*4 + 0x5c], edx
add eax, 1
cmp eax, ebx
jl 0x46ae50
mov edx, dword [esp + 0x1c]
lea eax, [ebx - 1]
mov dword [esp + 0x10], eax
mov ebp, 0x10
jmp 0x46b19f
mov edx, 2
mov eax, esi
call fcn.004688f0
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.004688f0
lea ebx, [eax + 1]
lea ebp, [ebx - 1]
xor edi, edi
test ebp, ebp
mov dword [esp + 0x14], eax
jle 0x46aebb
jmp 0x46aea0
mov edx, 2
mov eax, esi
call fcn.004688f0
lea ecx, [eax + eax + 2]
mov dword [esp + edi*4 + 0x50], ecx
add edi, 1
cmp edi, ebp
jl 0x46aea0
mov edx, dword [ebx*4 + 0x5d1190]
mov eax, esi
call fcn.004688f0
test ebx, ebx
mov dword [esp + 0x20], eax
jle 0x46af2c
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, ebx
lea edi, [esp + ebx*4 + 0x58]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
cmp ecx, 0x10
ja 0x46af08
mov edx, dword [esi]
movzx ebp, byte [edx]
shl eax, 8
or eax, ebp
movzx ebp, byte [edx + 1]
shl eax, 8
add edx, 2
or eax, ebp
mov dword [esi], edx
add ecx, 0x10
sub ecx, 1
mov edx, eax
shr edx, cl
sub edi, 4
and edx, 1
sub dword [esp + 0x1c], 1
mov dword [edi + 4], edx
jne 0x46aee8
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
jmp 0x46b19c
mov edx, 2
mov eax, esi
call fcn.004688f0
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.004688f0
lea ebx, [eax + 1]
lea ebp, [ebx - 1]
xor edi, edi
test ebp, ebp
mov dword [esp + 0x14], eax
jle 0x46af7b
mov edx, 2
mov eax, esi
call fcn.004688f0
lea ecx, [eax + eax + 2]
mov dword [esp + edi*4 + 0x50], ecx
add edi, 1
cmp edi, ebp
jl 0x46af60
mov edx, dword [ebx*4 + 0x5d1190]
mov eax, esi
call fcn.004688f0
xor edi, edi
test ebx, ebx
mov dword [esp + 0x20], eax
jle 0x46afe4
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, ebx
mov dword [esp + 0x18], edx
cmp ecx, 0x10
ja 0x46afc2
mov edx, dword [esi]
movzx ebp, byte [edx]
shl eax, 8
or eax, ebp
movzx ebp, byte [edx + 1]
shl eax, 8
add edx, 2
or eax, ebp
mov dword [esi], edx
add ecx, 0x10
sub ecx, 1
mov edx, eax
shr edx, cl
add edi, 1
and edx, 1
cmp edi, ebx
mov dword [esp + edi*4 + 0x58], edx
jl 0x46afa2
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
mov ebp, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x46b19f
mov edx, 2
mov eax, esi
call fcn.004688f0
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.004688f0
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.004688f0
mov ebp, eax
mov eax, esi
mov dword [esp + 0x10], ebp
call fcn.004688f0
xor edi, edi
test ebp, ebp
mov dword [esp + 0x14], eax
lea ebx, [eax + ebp + 1]
jle 0x46b05e
nop
mov edx, 2
mov eax, esi
call fcn.004688f0
lea eax, [eax + eax + 2]
mov dword [esp + edi*4 + 0x90], eax
add edi, 1
cmp edi, ebp
jl 0x46b040
mov edx, dword [esp + 0x14]
xor edi, edi
test edx, edx
jle 0x46b0ca
mov ebp, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
lea ebp, [ebp + edx*2]
mov dword [esp + 0x18], ebp
lea esp, [esp]
cmp ecx, 0x10
ja 0x46b0a4
mov edx, dword [esi]
movzx ebp, byte [edx]
shl eax, 8
or eax, ebp
movzx ebp, byte [edx + 1]
add edx, 2
shl eax, 8
or eax, ebp
mov dword [esi], edx
mov edx, dword [esp + 0x14]
add ecx, 0x10
sub ecx, 2
mov ebp, eax
shr ebp, cl
add edi, 1
and ebp, 3
cmp edi, edx
lea ebp, [ebp + ebp + 2]
mov dword [esp + edi*4 + 0x74], ebp
jl 0x46b080
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 4]
cmp eax, 0x10
mov edx, dword [ebx*4 + 0x5d1190]
ja 0x46b0fd
mov ecx, dword [esi]
movzx ebp, byte [ecx]
mov edi, dword [esi + 8]
shl edi, 8
or edi, ebp
movzx ebp, byte [ecx + 1]
shl edi, 8
or edi, ebp
add ecx, 2
add eax, 0x10
mov dword [esi + 8], edi
mov dword [esi], ecx
mov dword [esi + 4], eax
sub dword [esi + 4], edx
mov eax, dword [esi + 4]
mov ebp, dword [esi + 8]
add dword [esi + 0xc], edx
mov ecx, eax
mov edi, ebp
shr edi, cl
mov ecx, 1
mov dword [esp + 0x18], ecx
mov ecx, edx
mov edx, dword [esp + 0x18]
shl edx, cl
sub edx, 1
and edi, edx
mov dword [esp + 0x20], edi
xor edi, edi
test ebx, ebx
jle 0x46b182
mov edx, dword [esi + 0xc]
add edx, ebx
mov ecx, eax
mov eax, ebp
mov dword [esp + 0x18], edx
lea esp, [esp]
cmp ecx, 0x10
ja 0x46b160
mov edx, dword [esi]
movzx ebp, byte [edx]
shl eax, 8
or eax, ebp
movzx ebp, byte [edx + 1]
shl eax, 8
add edx, 2
or eax, ebp
mov dword [esi], edx
add ecx, 0x10
sub ecx, 1
mov edx, eax
shr edx, cl
add edi, 1
and edx, 1
cmp edi, ebx
mov dword [esp + edi*4 + 0x58], edx
jl case.default.0x46b1a5
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
mov edx, eax
add ebp, 0x10
mov eax, dword [esp + 0x28]
xor edi, edi
jmp dword [eax*4 + 0x46b3f8]
cmp dword [esp + 0x10], edi
jle case.default.0x46ae18
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx*4 + 0x5d11a8]
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
jmp 0x46b20e
cmp dword [esp + 0x10], edi
jle case.default.0x46ae18
mov ecx, dword [esp + 0x10]
lea edi, [esp + 0x44]
jmp 0x46b208
cmp dword [esp + 0x10], edi
jle 0x46b1ee
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x90]
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp edx, edi
jle case.default.0x46ae18
mov ecx, edx
lea esi, [esp + 0x78]
lea edi, [esp + 0x34]
jmp 0x46b20c
cmp edx, edi
jle case.default.0x46ae18
mov ecx, edx
lea edi, [esp + 0x34]
lea esi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esp + 0x78], ecx
mov dword [esp + ebx*4 + 0x78], ebp
jl 0x46b25a
xor edx, edx
lea esi, [esp + 0x7c]
mov dword [esp + 0x14], eax
nop
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
xor eax, eax
cmp edx, edi
jl 0x46b24d
mov ecx, dword [esp + 0x2c]
add ecx, dword [esp + eax*4 + 0x44]
add eax, 1
cmp eax, edx
jle 0x46b240
mov dword [esi], ecx
add edx, 1
add esi, 4
sub dword [esp + 0x14], 1
jne 0x46b230
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, ebx
jge 0x46b298
mov eax, ebx
sub eax, ecx
lea esi, [esp + ecx*4 + 0x78]
lea edx, [eax - 1]
mov edi, eax
xor eax, eax
test edx, edx
mov dword [esi], ebp
jl 0x46b28d
mov ecx, ebp
lea esp, [esp]
sub ecx, dword [esp + eax*4 + 0x34]
add eax, 1
cmp eax, edx
jle 0x46b280
mov dword [esi], ecx
sub edx, 1
add esi, 4
sub edi, 1
jne 0x46b272
mov eax, dword [esp + 0x28]
cmp eax, 3
ja case.default.0x46b2a1
jmp dword [eax*4 + 0x46b408]
mov eax, ebx
sar eax, 1
jmp 0x46b2f7
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, 0
je 0x46b2d0
sub eax, 1
je 0x46b2c7
add ecx, 0xffffffff
mov dword [esp + 0x24], ecx
jmp case.default.0x46b2a1
lea ecx, [ebx - 1]
mov dword [esp + 0x24], ecx
jmp case.default.0x46b2a1
mov dword [esp + 0x24], 1
jmp case.default.0x46b2a1
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x46b2f0
cmp ecx, 1
jg 0x46b2f0
lea edx, [ebx - 1]
mov dword [esp + 0x24], edx
jmp case.default.0x46b2a1
mov eax, ebx
sub eax, ecx
add eax, 1
mov dword [esp + 0x24], eax
cmp ebx, 1
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
jle 0x46b323
mov eax, dword [esp + 0x24]
mov edx, dword [esp + eax*4 + 0x78]
mov eax, dword [esp + ebx*4 + 0x78]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov esi, 2
jmp 0x46b330
mov eax, dword [esp + ebx*4 + 0x78]
mov dword [esp + 0x38], eax
mov esi, 1
cmp eax, ecx
jl 0x46b338
test ecx, ecx
jge 0x46b340
mov dword [esp + 0x40], 0xe
mov eax, dword [esp + 0x28]
cmp eax, 3
ja case.default.0x46b349
jmp dword [eax*4 + 0x46b418]
or ebp, 0xffffffff
jmp 0x46b37c
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x46b362
cmp eax, 1
jle case.0x46b349.0
lea ebp, [eax - 1]
jmp 0x46b37c
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x46b349.0
mov ebp, ebx
sub ebp, eax
add ebp, 1
jmp 0x46b37c
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0xa0]
lea eax, [ebx*4 + 4]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [edi + 0x14]
push edx
mov dword [edi + 0x10], ebx
call fcn.004b42c0
lea eax, [ebx*4]
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [edi + ebx*4 + 0x18]
push ecx
call fcn.004b42c0
lea edx, [esi*4 + 4]
lea ebx, [ebx + ebx + 2]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [edi + ebx*4 + 0x18]
push ecx
mov dword [edi + ebx*4 + 0x10], ebp
mov dword [edi + ebx*4 + 0x14], esi
call fcn.004b42c0
mov eax, dword [esp + 0x64]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret