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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x48]
cmp ecx, eax
push edi
jge 0x46fc98
lea esi, [ecx*8]
sub esi, ecx
shl esi, 2
sub eax, ecx
mov edi, eax
mov edx, dword [ebx + 0x7c]
mov ecx, esi
push ebx
add ecx, edx
call fcn.00470450
add esi, 0x1c
dec edi
jne 0x46fb2a
mov ebp, dword [ebx + 0x48]
xor edi, edi
cmp ebp, edi
jne 0x46fb6a
mov eax, dword [ebx + 0x7c]
cmp eax, edi
je 0x46fb59
push eax
call fcn.004dbc23
add esp, 4
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x84], edi
mov dword [ebx + 0x80], edi
jmp 0x46fc98
mov ecx, dword [ebx + 0x7c]
cmp ecx, edi
jne 0x46fba1
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
push eax
call fcn.004dbbfa
add esp, 4
mov dword [ebx + 0x7c], eax
push ebp
push eax
call fcn.004714a0
mov dword [ebx + 0x84], ebp
mov dword [ebx + 0x80], ebp
jmp 0x46fc98
mov esi, dword [ebx + 0x84]
cmp ebp, esi
jg 0x46fbd7
mov eax, dword [ebx + 0x80]
cmp ebp, eax
jle 0x46fbcc
mov edx, ebp
sub edx, eax
push edx
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*4]
push eax
call fcn.004714a0
mov dword [ebx + 0x80], ebp
jmp 0x46fc98
mov eax, dword [ebx + 0x88]
cmp eax, edi
jne 0x46fc08
mov eax, dword [ebx + 0x80]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x46fbfc
mov eax, 4
jmp 0x46fc08
cmp eax, 0x400
jle 0x46fc08
mov eax, 0x400
add eax, esi
cmp ebp, eax
jge 0x46fc14
mov dword [esp + 0x10], eax
jmp 0x46fc1a
mov dword [esp + 0x10], ebp
mov eax, ebp
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call fcn.004dbbfa
mov edx, dword [ebx + 0x80]
mov esi, dword [ebx + 0x7c]
mov edi, eax
add esp, 4
lea ecx, [edx*8]
mov dword [esp + 0x14], eax
sub ecx, edx
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x80]
sub edx, ecx
push edx
lea edx, [ecx*8]
sub edx, ecx
lea eax, [eax + edx*4]
push eax
call fcn.004714a0
mov ecx, dword [ebx + 0x7c]
push ecx
call fcn.004dbc23
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x80], ebp
mov dword [ebx + 0x84], eax
mov esi, dword [ebx + 0x80]
mov eax, dword [ebx + 0x44]
cmp esi, eax
jl 0x46fd0c
mov ecx, dword [ebx + 0x7c]
push ebx
call fcn.00470450
mov edi, 1
cmp esi, edi
je 0x46fcd6
mov ebp, 0x1c
mov ecx, dword [ebx + 0x7c]
add ecx, ebp
mov eax, dword [ecx]
test ah, 1
jne 0x46fcd6
push ebx
call fcn.00470450
inc edi
add ebp, 0x1c
cmp edi, esi
jne 0x46fcbc
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
sub eax, edi
je 0x46fd06
lea edx, [eax*8]
sub edx, eax
lea eax, [edi*8]
shl edx, 2
sub eax, edi
push edx
lea edx, [ecx + eax*4]
push edx
push ecx
call fcn.004bf4e0
add esp, 0xc
sub dword [ebx + 0x80], edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x38]
cmp ecx, edx
mov ecx, dword [esp + 0x3c]
setne al
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x54]
cmp eax, edx
mov eax, dword [esp + 0x40]
jne 0x46fd4a
mov esi, dword [ecx + 4]
mov edi, dword [eax + 4]
cmp esi, edi
jne 0x46fd4a
test byte [ebx + 0x8c], 4
je 0x46fd6a
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x8c]
or edi, 0x100
and esi, 0xfffffffb
mov dword [esp + 0x18], edi
mov dword [ebx + 0x8c], esi
mov dword [ebx + 0x54], edx
test byte [ebx + 0x8c], 2
je 0x46fd7b
or dword [esp + 0x18], 0x200
mov esi, dword [esp + 0x48]
mov dword [esp + 0x30], esi
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp esi, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
je 0x46fdcf
cmp word [esi], dx
je 0x46fdcf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004dbbfa
add esp, 4
mov dword [esp + 0x2c], eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46fdd3
mov dword [esp + 0x2c], edx
mov edi, dword [ebx + 0x80]
lea esi, [ebx + 0x78]
push 0xffffffffffffffff
mov ecx, esi
lea edx, [edi + 1]
push edx
call fcn.00470e50
mov ecx, dword [esi + 4]
lea eax, [edi*8]
sub eax, edi
lea esi, [esp + 0x18]
lea edi, [ecx + eax*4]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x80]
pop edi
pop esi
mov dword [ebx + 0x48], edx
pop ebp
pop ebx
add esp, 0x24
ret 0x14