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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x3000
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
call 0x37ac5fb0
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x3859ef39
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add ecx, 0xffffd000
push edi
push 0x3000
push ebx
add eax, ecx
push eax
push dword [ebp - 0xc]
call 0x37e6d7f0
add esp, 0x10
cmp eax, 0x3000
jne 0x3859efc6
mov ecx, 4
mov eax, ebx
sub ecx, ebx
mov dword [ebp - 8], ecx
lea ecx, [ecx]
mov esi, dword [eax + 8]
lea edx, [eax + 4]
mov ebx, dword [eax + 0x18]
xor esi, 0xffffffd8
sub esi, dword [eax]
mov edi, dword [eax + 0xc]
sub edi, dword [eax]
mov dword [ebp - 0x14], edx
lea ecx, [ebx + esi]
xor ecx, dword [eax + 0x20]
cmp ecx, 0xffffffd8
jne 0x3859efb5
lea ecx, [ebx + edi]
xor ecx, dword [eax + 0x24]
cmp ecx, 4
jne 0x3859efb5
mov ebx, dword [eax + 0x30]
lea ecx, [ebx + esi]
xor ecx, dword [eax + 0x38]
cmp ecx, 0xffffffd8
jne 0x3859efb5
lea ecx, [ebx + edi]
xor ecx, dword [eax + 0x3c]
cmp ecx, 8
je 0x3859efdb
mov ecx, dword [ebp - 8]
inc eax
add ecx, eax
cmp ecx, 0x2fc4
jb 0x3859ef70
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
call 0x37ac5ff0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea ecx, [ecx]
lea ebx, [edx - 0xc]
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 4]
jb 0x3859efc3
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
lea ebx, [eax + edi]
add eax, esi
xor ebx, dword [edx + 8]
xor eax, dword [edx + 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
cmp eax, 0xfffffffc
jne 0x3859f00d
cmp dword [ebp - 0x10], 0xfffffff8
je 0x3859f01d
inc ecx
mov edx, ebx
mov dword [ebp - 0x14], edx
cmp ecx, 0xd3
jb 0x3859efe0
jmp 0x3859efc3
mov ebx, dword [ebp - 4]
mov eax, edx
sub eax, ebx
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], ecx
lea eax, [ebx + 0x2ff4]
mov dword [ebp - 0x10], eax
cmp edx, eax
jae 0x3859f071
lea ebx, [edx + 8]
mov edx, dword [ebp - 0x1c]
nop
cmp ecx, 0xd3
jae 0x3859f06b
mov ecx, dword [ebx]
lea eax, [edx + esi]
xor dword [ebx - 4], eax
lea eax, [edx + edi]
xor eax, ecx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebx], eax
inc ecx
add ebx, 0xc
mov dword [ebp - 8], ecx
lea eax, [ebx - 8]
cmp eax, dword [ebp - 0x10]
jb 0x3859f040
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov ecx, dword [edx + 0x34]
lea esi, [edx + 0x6f4]
mov eax, dword [edx + 0x7c]
add ecx, 4
shl eax, 2
cmp eax, ecx
mov eax, 0
sete al
cmp dword [esi], 0x424448b
jne 0x3859f096
inc eax
cmp dword [edx + 0x964], 0x90909090
jne 0x3859f0a3
inc eax
cmp eax, 3
jne 0x3859efc6
cmp byte [ebp + 0x10], 0
jne 0x3859f0dc
mov esi, dword [ebp - 0xc]
push 1
push 0
push 0x122d58
push 0x7b41710
push esi
call 0x37e622b0
push ebx
push esi
call 0x37ac5ff0
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov eax, dword [edx + 0x4c]
mov dword [edi + 8], eax
mov eax, dword [edx + 0x58]
mov dword [edi], eax
mov eax, dword [edx + 0x64]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x70]
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x7c]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x88]
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x118]
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
add ecx, dword [ebp - 0x24]
add eax, 0xffffd000
add eax, ecx
lea ecx, [edi + 0x40]
mov dword [edi + 0x30], eax
mov edi, 0xe
mov eax, dword [esi]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
lea esi, [esi + 0x18]
sub edi, 1
jne 0x3859f132
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x904]
push ebx
push dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov eax, dword [edx + 0x91c]
mov dword [ecx + 0x7c], eax
mov eax, dword [edx + 0x934]
mov dword [ecx + 0x80], eax
mov eax, dword [edx + 0x94c]
mov dword [ecx + 0x84], eax
mov eax, dword [edx + 0x964]
mov dword [ecx + 0x88], eax
mov eax, dword [edx + 0x97c]
mov dword [ecx + 0x8c], eax
mov eax, dword [edx + 0x994]
mov dword [ecx + 0x90], eax
mov eax, dword [edx + 0x9ac]
mov dword [ecx + 0x94], eax
mov eax, dword [edx + 0x9c4]
mov dword [ecx + 0x98], eax
call 0x37ac5ff0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret