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

Disassembly:
sub esp, 0x88
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
push eax
mov ebp, 1
push 0x24
push ebp
push esi
call fcn.0043a9d0
add esp, 0x10
test eax, eax
jne 0x46b3e5
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebp
mov edx, dword [esp + 0x10]
mov dword [edx + 4], ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x94]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x20], 4
mov al, byte [esi + 0x23c]
test al, 8
je 0x46ad1a
mov eax, dword [esp + 0x10]
or dword [eax + 0x20], 2
mov eax, dword [esi + 0x23c]
test ah, 0x40
je 0x46ad47
mov eax, dword [esp + 0x10]
add eax, 0x10
push eax
push str.process_private
push esi
call fcn.0043a970
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46b270
jmp 0x46adc1
push str.__db.001
push 0x4c5a7c
lea ecx, [esp + 0x80]
push 0x1e
push ecx
call fcn.004a7c2b
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x88]
add edx, 0x10
push edx
push 0
push 0
push eax
push 0
push esi
call fcn.0043d1b0
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x46b270
test byte [esi + 0x23c], 8
je 0x46afcd
mov ecx, dword [esi + 0x9c]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x94]
push ecx
mov ecx, dword [eax + 0x10]
push edx
push 0x27
push ecx
push esi
call fcn.0046c460
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46afa6
mov eax, dword [esp + 0x10]
mov ecx, 0x12
lea edi, [esp + 0x30]
mov ebx, dword [eax + 0x20]
or ebx, ebp
mov dword [eax + 0x20], ebx
mov edx, dword [esi + 0xe0]
xor eax, eax
add edx, 0x1610
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
or ebx, 0xffffffff
push ecx
push esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ebx
call fcn.004954b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46b270
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
push ebp
push edx
mov ecx, dword [eax + 0x14]
push ecx
push esi
call fcn.0046bea0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
add edx, 0x54
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20]
add eax, 0xffffffac
push eax
mov edx, dword [ecx + 0x14]
push edx
call fcn.0048a4e0
mov eax, dword [esp + 0x28]
mov ebp, dword [eax + 0x18]
lea ecx, [ebp + 0x38]
lea edx, [ebp + 0x34]
push ecx
lea eax, [ebp + 0x30]
push edx
push eax
mov dword [ebp + 0x2c], edi
call fcn.0043c7c0
mov eax, dword [esp + 0xc4]
add esp, 0x24
cmp eax, edi
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], 1
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x4c], edi
jne 0x46ae8e
xor eax, eax
jmp 0x46ae90
mov eax, dword [eax]
mov dword [ebp + 0x3c], eax
mov ecx, dword [esp + 0x10]
push 0x600
push ebp
push ecx
push esi
call fcn.0045c010
mov edi, eax
add esp, 0x10
test edi, edi
je 0x46aecf
push edi
call fcn.0043ed90
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x10]
push eax
push str._s:_unable_to_initialize_environment_lock:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
test byte [ebp + 0x24], 1
jne 0x46af07
push ebp
push esi
call fcn.0044c830
mov edi, eax
add esp, 8
test edi, edi
je 0x46af07
push edi
call fcn.0043ed90
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 0x10]
push edx
push str._s:_unable_to_acquire_environment_lock:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
push eax
push esi
call fcn.0046bcb0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46b232
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x74]
mov dword [eax + 0x44], edx
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x46b332
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x9c]
push edx
lea eax, [esp + 0x24]
push 8
push eax
push ecx
push esi
call fcn.00473050
mov edi, eax
add esp, 0x14
test edi, edi
je 0x46b332
push edi
call fcn.0043ed90
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x10]
push eax
push str._s:_unable_to_write_out_public_environment_ID:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
cmp edi, 0x11
je 0x46afcd
push edi
call fcn.0043ed90
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 0x10]
push edx
push str._s:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
mov eax, dword [esi + 0x9c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x94]
push eax
mov eax, dword [edx + 0x10]
push ecx
push 0x22
push eax
push esi
call fcn.0046c460
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46b270
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x9c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
mov edx, dword [ecx + 0x10]
push edx
push esi
call fcn.0046c210
mov edi, eax
add esp, 0x18
test edi, edi
je 0x46b043
push edi
call fcn.0043ed90
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push str._s:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
shl ebx, 0x14
add ebx, ecx
cmp ebx, 8
ja 0x46b0c6
jne 0x46b270
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 8
push eax
push ecx
push esi
call fcn.00472f90
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46b0a4
cmp dword [esp + 0x18], 8
jb 0x46b09f
mov eax, dword [esi + 0x23c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
or eax, 0x200000
mov dword [esi + 0x23c], eax
jmp 0x46b0fc
mov edi, 5
push edi
call fcn.0043ed90
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x10]
push eax
push str._s:_unable_to_read_system_memory_information_from:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
test dword [esi + 0x23c], 0x200000
je 0x46b0f9
mov edi, 0x16
push edi
call fcn.0043ed90
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [ecx + 0x10]
push edx
push str._s:_existing_environment_not_created_in_system_memory:__s
push esi
call fcn.0043eea0
add esp, 0x14
jmp 0x46b270
or ebp, 0xffffffff
mov eax, dword [esi + 0x9c]
push eax
push esi
call fcn.00472dc0
mov edx, dword [esp + 0x18]
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], ebx
push ecx
push edx
push esi
mov dword [esp + 0x88], ebp
call fcn.004954b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46b270
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
add edx, 0x54
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x18]
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x46b17e
mov ecx, dword [esi + 0x23c]
test ch, 8
jne 0x46b17e
push esi
call fcn.0043ed20
add esp, 4
mov edi, eax
jmp 0x46b270
cmp dword [ebp + 0x28], 0x120897
jne 0x46b274
mov ecx, dword [ebp + 0x30]
cmp ecx, 4
jne 0x46b24e
cmp dword [ebp + 0x34], 1
jne 0x46b24e
cmp dword [ebp + 0x38], 0x19
jne 0x46b24e
test byte [ebp + 0x24], 1
jne 0x46b1bf
push ebp
push esi
call fcn.0044c830
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x46b1de
mov ecx, dword [esi + 0x23c]
test ch, 8
jne 0x46b1de
push esi
call fcn.0043ed20
add esp, 4
mov edi, eax
jmp 0x46b210
lea edx, [esp + 0x14]
push edx
push eax
push eax
push esi
call fcn.0046bcb0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46b222
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b222
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x3c], ebx
je 0x46b377
test byte [ebp + 0x24], 1
jne 0x46b270
push ebp
push esi
call fcn.0044c910
add esp, 8
jmp 0x46b270
test byte [ebp + 0x24], 1
jne 0x46b232
push ebp
push esi
call fcn.0044c910
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
push str._s:_unable_to_find_environment
push esi
call fcn.0043eea0
add esp, 0xc
test edi, edi
jne 0x46b270
jmp 0x46b26b
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
push edx
push eax
push ecx
push 0x19
push 1
push 4
push str.Program_version__d._d._d_doesnt_match_environment_version__d._d._d
push esi
call fcn.0043eea0
add esp, 0x20
mov edi, 0x16
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x9c]
test byte [ecx + 0x20], 4
je 0x46b28e
push ecx
push esi
call fcn.00472dc0
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x46b2c6
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x46b2a7
lea ecx, [esp + 0x30]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
and ecx, 1
push ecx
push eax
push esi
call fcn.00495540
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46b2db
push ecx
push esi
call fcn.0043ab30
mov eax, dword [esp + 0x18]
add esp, 8
push eax
push esi
call fcn.0043ab30
add esp, 8
test edi, edi
jne 0x46b3e3
mov eax, dword [esp + 0x1c]
add eax, 3
cmp eax, 9
mov dword [esp + 0x1c], eax
ja 0x46b3d0
push edi
push eax
push esi
call fcn.00450570
lea edx, [esp + 0x1c]
mov ebp, 1
push edx
push 0x24
push ebp
push esi
call fcn.0043a9d0
add esp, 0x1c
test eax, eax
je 0x46ace3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [esi + 0x9c]
test byte [eax + 0x20], 4
je 0x46b348
push eax
push esi
call fcn.00472dc0
add esp, 8
mov al, byte [ebp + 0x24]
mov dword [ebp + 0x28], 0x120897
test al, 1
jne 0x46b360
push ebp
push esi
call fcn.0044c910
add esp, 8
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0x98], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
mov edx, dword [ebp + 0x48]
mov eax, dword [esp + 0xa0]
inc edx
test eax, eax
mov dword [ebp + 0x48], edx
je 0x46b38e
mov ecx, dword [ebp + 0x3c]
mov dword [eax], ecx
test byte [ebp + 0x24], 1
jne 0x46b39e
push ebp
push esi
call fcn.0044c910
add esp, 8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
mov eax, dword [edx + 0x3c]
mov edx, dword [ecx + 0x18]
push eax
push edx
push esi
call fcn.0046bea0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x98], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
push str.unable_to_join_the_environment
push esi
call fcn.0043eea0
add esp, 8
mov edi, 0xb
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret