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

Disassembly:
push 0xffffffffffffffff
push 0x4a0df1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5116ec]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5116ec]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, dword [esp + 0x94]
mov esi, ecx
lea ebp, [esi + 4]
xor ebx, ebx
mov dword [esp + 0x24], ebx
push ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x8c], 1
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], ebx
sar eax, 2
mov dword [esp + 0x20], ebx
test eax, eax
je 0x362ab8
lea ebx, [ebx]
mov ecx, dword [esi + 0x1c]
movzx edx, word [esp + 0x98]
mov edi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
mov dword [esp + 0x28], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
push 0x4142d0
mov ebp, eax
mov eax, dword [edi + 4]
push 6
push eax
lea ecx, [ebp + 9]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004982fd
add esp, 0x14
test eax, eax
jne 0x362a90
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x362a40
jmp 0x362aae
mov ecx, dword [eax + 2]
mov eax, dword [eax + 8]
sub eax, ecx
lea edi, [ecx + ebp]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [edx + 8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jne 0x362ad5
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor ebx, ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x362c94
mov ebx, 7
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], dx
mov byte [esp + 0x8c], 2
cmp ecx, 2
jne 0x362b52
cdq
sub eax, edx
xor ecx, ecx
sar eax, 1
push eax
mov word [esp + 0x4c], cx
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
call fcn.002f1d20
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 3
call fcn.002f5300
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x5c], 8
jb 0x362be1
mov eax, dword [esp + 0x48]
push eax
call fcn.00438a36
add esp, 4
jmp 0x362be1
cmp ecx, 1
jne 0x362be1
lea esi, [esp + 0x64]
lea ecx, [esp + 0x1c]
call fcn.003627d0
lea ecx, [esp + 0x48]
push ecx
mov bl, 4
mov ecx, eax
mov byte [esp + 0x90], bl
call fcn.00300bc0
add esp, 4
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 5
call fcn.002f5300
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x5c], 8
jb 0x362bad
mov edx, dword [esp + 0x48]
push edx
call fcn.00438a36
add esp, 4
xor eax, eax
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], ax
jb 0x362bdc
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00438a36
add esp, 4
mov ebx, 7
mov esi, dword [esp + 0x18]
xor edx, edx
lea eax, [esp + 0x2c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebp
mov word [esi], dx
lea edi, [edx + 8]
cmp esi, eax
je 0x362c55
cmp dword [esi + 0x14], edi
jb 0x362c0b
mov eax, dword [esi]
push eax
call fcn.00438a36
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebp
mov word [esi], cx
cmp dword [esp + 0x40], edi
jae 0x362c35
mov edx, dword [esp + 0x3c]
lea eax, [edx + edx + 2]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00438cc0
add esp, 0xc
jmp 0x362c3f
mov edx, dword [esp + 0x2c]
mov dword [esi], edx
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov byte [esp + 0x8c], 1
mov dword [esp + 0x24], 1
cmp dword [esp + 0x40], edi
jb 0x362c78
mov edx, dword [esp + 0x2c]
push edx
call fcn.00438a36
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00438a41
add esp, 0x7c
ret 8