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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5943bd
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
xor edi, edi
mov eax, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4d36b4
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x30]
call fcn.0043a8d0
mov ecx, esi
push ecx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x348], edi
call fcn.004871d0
push eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x348], 1
call fcn.00486790
mov ebx, 8
cmp dword [esp + 0x5c], ebx
jb 0x4d3710
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00563626
add esp, 4
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
mov byte [esp + 0x340], 4
cmp dword [esp + 0x40], ebx
jb 0x4d373d
mov edx, dword [esp + 0x2c]
push edx
call fcn.00563626
add esp, 4
lea eax, [esp + 0x60]
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
push eax
lea edi, [esp + 0x80]
mov dword [esp + 0x44], esi
call fcn.004868e0
mov byte [esp + 0x340], 5
cmp dword [esp + 0x74], 0
je 0x4d38dd
mov edi, edi
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
mov edx, dword [0x5f7780]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
mov edx, dword [0x5f7780]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x340], 7
cmp dword [esp + 0x78], ebx
mov ecx, dword [esp + 0x64]
jae 0x4d37cb
lea ecx, [esp + 0x64]
lea edx, [esp + 0x14]
push edx
call fcn.00481430
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], bl
call fcn.004d2510
mov esi, eax
mov byte [esp + 0x340], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4d3829
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
add esi, 4
call fcn.004f4fd0
mov byte [esp + 0x340], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d3851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d3891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
lea edi, [esp + 0x80]
call fcn.004868e0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x348], 6
call fcn.0043a9a0
mov byte [esp + 0x340], 5
cmp dword [esp + 0x5c], ebx
jb 0x4d38d2
mov edx, dword [esp + 0x48]
push edx
call fcn.00563626
add esp, 4
cmp dword [esp + 0x74], 0
jne 0x4d3770
cmp dword [esp + 0x78], ebx
jb 0x4d38f0
mov eax, dword [esp + 0x64]
push eax
call fcn.00563626
add esp, 4
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], eax
mov word [esp + 0x64], ax
call fcn.00486860
mov eax, 1
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret 8