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

Disassembly:
sub esp, 0x58
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, ecx
test ebp, ebp
jne 0x4623f2
mov ecx, dword [esp + 0x74]
push ebp
push ebp
call fcn.0040b700
pop esi
pop ebp
add esp, 0x58
ret 0x18
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push 1
push ebp
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045fb40
test al, al
jne 0x462427
mov ecx, dword [esp + 0x74]
push 0x120000
push 0
call fcn.0040b700
pop esi
pop ebp
add esp, 0x58
ret 0x18
mov ecx, esi
call fcn.0045f150
test eax, eax
je 0x46240f
mov ecx, dword [esi + 0x6c]
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 4
cmp dword [eax + ecx], 0
je 0x46246a
cmp ebp, dword [esi + 0x84]
ja 0x46246a
cmp dword [esp + 0x78], 0
je 0x46246a
xor edx, edx
cmp dword [esi + 0x88], edx
mov byte [esp + 0x74], 1
setne dl
cmp dword [esp + 0x7c], edx
jg 0x46246f
mov byte [esp + 0x74], 0
lea eax, [esi + 0x150]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esi + 0xe8]
push edx
call fcn.004758d0
mov edi, dword [esp + 0x68]
mov byte [esp + 0x7c], al
test al, al
je 0x4624b8
mov eax, dword [esp + 0x78]
push 0
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0045f180
jmp 0x4624ba
xor eax, eax
push ebx
xor ebx, ebx
mov dword [esp + 0x10], ebx
test eax, eax
je 0x462537
add ebx, eax
add edi, eax
add dword [esp + 0x70], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x6c], edi
adc dword [esp + 0x74], 0
cmp ebp, eax
jae 0x4624e0
mov eax, ebp
sub ebp, eax
je 0x462537
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push 1
push ebp
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0045fb40
test al, al
je 0x462537
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea ecx, [esi + 0xe8]
call fcn.004758d0
test al, al
je 0x462537
mov edx, dword [esp + 0x7c]
push 0
push edx
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0045f180
test eax, eax
jne 0x4624c5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x46279b
cmp byte [esp + 0x80], bl
mov ebx, dword [esp + 0x38]
je 0x4625c3
cmp byte [esp + 0x78], 0
je 0x462797
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x6c]
shl eax, 4
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
mov edx, dword [esp + 0x38]
push ebx
push edx
mov edx, dword [esp + 0x3c]
push edx
push edi
call eax
cmp eax, ebx
je 0x46279d
cmp byte [esp + 0x80], 0
jne 0x462769
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x462666
cmp eax, 2
je 0x462666
cmp dword [esp + 0x2c], 1
jbe 0x46276d
jmp 0x462666
cmp byte [esp + 0x78], 0
jne 0x462562
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
mov edx, eax
shl edx, 4
mov ecx, dword [edx + ecx]
test ecx, ecx
je 0x4625e9
cmp ebx, 0x80000
jae 0x462566
test ecx, ecx
jne 0x462666
mov edx, dword [esi + 0x68]
mov eax, dword [edx + 0xc]
lea edi, [esi + 0x68]
mov ecx, edi
mov dword [esp + 0x78], 0
xor ebx, ebx
call eax
test eax, eax
jbe 0x46263c
xor eax, eax
jmp 0x462617
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x6c]
cmp dword [eax + ecx], 0
jne 0x462624
inc dword [esp + 0x78]
mov edx, dword [edi]
add eax, 0x10
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0xc]
mov ecx, edi
inc ebx
call eax
cmp ebx, eax
jb 0x462610
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esi + 0xe0]
jbe 0x462662
mov ecx, dword [esp + 0x7c]
push 0x2b870000
push 0
call fcn.0040b700
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0x18
mov edi, dword [esp + 0x6c]
xor eax, eax
mov edx, ebp
add edx, dword [esp + 0x70]
push 1
adc eax, dword [esp + 0x78]
sub edx, 1
push 1
sbb eax, 0
push eax
push edx
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.0045fb40
mov edx, dword [esp + 0x14]
push edx
mov bl, al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x7c]
movzx ecx, bl
neg ecx
push 1
sbb ecx, ecx
push eax
lea edx, [esp + 0x48]
and ecx, edx
push ecx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00462160
mov bl, al
test bl, bl
je 0x46274c
mov ecx, dword [esp + 0x7c]
push 0
push ecx
push edi
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0045f180
test eax, eax
je 0x46274c
lea ebx, [ebx]
add dword [esp + 0x10], eax
add edi, eax
add dword [esp + 0x70], eax
adc dword [esp + 0x74], 0
cmp ebp, eax
jae 0x4626f5
mov eax, ebp
sub ebp, eax
je 0x46274c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push 1
push ebp
push eax
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.0045fb40
test al, al
je 0x46274c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea ecx, [esi + 0xe8]
call fcn.004758d0
test al, al
je 0x46274c
mov eax, dword [esp + 0x7c]
push 0
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0045f180
test eax, eax
jne 0x4626e0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x462769
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0x18
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x46277c
cmp eax, 2
mov eax, 0x2b810000
jne 0x462781
mov eax, 0x2b860000
mov ecx, dword [esp + 0x7c]
push eax
push 0
call fcn.0040b700
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0x18
mov ebx, dword [esp + 0x10]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0x18