Function at 0x46f500
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 0x46f698
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.0046fe50
add esi, 0x1c
dec edi
jne 0x46f52a
mov ebp, dword [ebx + 0x48]
xor edi, edi
cmp ebp, edi
jne 0x46f56a
mov eax, dword [ebx + 0x7c]
cmp eax, edi
je 0x46f559
push eax
call fcn.004db92d
add esp, 4
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x84], edi
mov dword [ebx + 0x80], edi
jmp 0x46f698
mov ecx, dword [ebx + 0x7c]
cmp ecx, edi
jne 0x46f5a1
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
push eax
call fcn.004db904
add esp, 4
mov dword [ebx + 0x7c], eax
push ebp
push eax
call fcn.00470ea0
mov dword [ebx + 0x84], ebp
mov dword [ebx + 0x80], ebp
jmp 0x46f698
mov esi, dword [ebx + 0x84]
cmp ebp, esi
jg 0x46f5d7
mov eax, dword [ebx + 0x80]
cmp ebp, eax
jle 0x46f5cc
mov edx, ebp
sub edx, eax
push edx
lea edx, [eax*8]
sub edx, eax
lea eax, [ecx + edx*4]
push eax
call fcn.00470ea0
mov dword [ebx + 0x80], ebp
jmp 0x46f698
mov eax, dword [ebx + 0x88]
cmp eax, edi
jne 0x46f608
mov eax, dword [ebx + 0x80]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x46f5fc
mov eax, 4
jmp 0x46f608
cmp eax, 0x400
jle 0x46f608
mov eax, 0x400
add eax, esi
cmp ebp, eax
jge 0x46f614
mov dword [esp + 0x10], eax
jmp 0x46f61a
mov dword [esp + 0x10], ebp
mov eax, ebp
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call fcn.004db904
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.00470ea0
mov ecx, dword [ebx + 0x7c]
push ecx
call fcn.004db92d
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 0x46f70c
mov ecx, dword [ebx + 0x7c]
push ebx
call fcn.0046fe50
mov edi, 1
cmp esi, edi
je 0x46f6d6
mov ebp, 0x1c
mov ecx, dword [ebx + 0x7c]
add ecx, ebp
mov eax, dword [ecx]
test ah, 1
jne 0x46f6d6
push ebx
call fcn.0046fe50
inc edi
add ebp, 0x1c
cmp edi, esi
jne 0x46f6bc
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
sub eax, edi
je 0x46f706
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.004bf340
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 0x46f74a
mov esi, dword [ecx + 4]
mov edi, dword [eax + 4]
cmp esi, edi
jne 0x46f74a
test byte [ebx + 0x8c], 4
je 0x46f76a
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 0x46f77b
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 0x46f7cf
cmp word [esi], dx
je 0x46f7cf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004db904
add esp, 4
mov dword [esp + 0x2c], eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46f7d3
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.00470850
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