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

Disassembly:
push 0xffffffffffffffff
push 0x51c850
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x164], ebx
je 0x4cd67d
mov eax, dword [esp + 0x70]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebp, dword [eax]
mov eax, dword [eax + 0xc]
push 2
mov dword [esp + 0x38], ecx
lea edi, [esi + 0x3c]
push 0x53c3b4
mov ecx, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.0041af30
push edi
lea ecx, [esi + 0x260]
call fcn.004ca600
mov eax, dword [edi]
push edi
push eax
mov ecx, esi
call fcn.004c4260
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call fcn.0041abb0
mov ecx, esi
call fcn.004c7c40
mov dword [esp + 0x6c], ebx
call fcn.004daeb7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4cd6f2
push 0x80004005
call fcn.00402980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x70], 1
call fcn.004c8270
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd745
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004c4f20
xor eax, eax
push eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov byte [esp + 0x70], 2
call fcn.004c8440
mov eax, dword [esi + 0x164]
cmp eax, 1
jne 0x4cd7f2
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x90]
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0
cmp dword [esi + 0x90], 0
jle 0x4cd7c4
mov dword [eax + 0x18], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
add edx, ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
jmp 0x4cd8f1
test eax, eax
jne 0x4cd8ed
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x78]
test eax, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jl 0x4cd845
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
push 0
push 5
push ecx
mov ecx, dword [esi + 0x60]
push edx
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [esi + 0x15c]
push eax
lea ecx, [esi + 0xd0]
call fcn.004d1980
cmp dword [esi + 0x144], 0
mov ecx, dword [esi + 0x88]
push 1
push ecx
je 0x4cd86d
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
push edx
mov edx, dword [esi + 0x15c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
jmp 0x4cd881
mov eax, dword [esi + 0x148]
push eax
push eax
mov eax, dword [esi + 0x15c]
lea edx, [esp + 0x58]
push edx
push eax
lea ecx, [esi + 0xd0]
call fcn.004d28a0
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0x8c]
lea edx, [ecx + eax]
add dword [esp + 0x48], edx
add dword [esp + 0x4c], edx
lea edx, [ecx + eax]
sub dword [esp + 0x50], edx
add ecx, eax
mov eax, dword [esp + 0x54]
sub eax, ecx
mov ecx, dword [esi + 0x84]
sub ecx, 1
mov dword [esp + 0x54], eax
je 0x4cd8d5
sub ecx, 1
jne 0x4cd8ed
mov ecx, dword [esp + 0x70]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, ecx
jmp 0x4cd8f1
mov edx, dword [esp + 0x70]
sub eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [ebx]
mov ecx, dword [ecx - 0xc]
mov edi, dword [esp + 0x6c]
cmp edi, ecx
jge 0x4cda70
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x53ae78
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], edi
call fcn.0041abb0
lea edx, [esp + 0x70]
push edx
push ebx
mov ecx, esi
call fcn.004c13e0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.table
call fcn.0041abb0
lea eax, [esp + 0x6c]
push eax
push ebx
mov ecx, esi
call fcn.004c13e0
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
cmp ecx, ebp
jge 0x4cd95a
mov eax, ecx
mov dword [esp + 0x6c], eax
jmp 0x4cd960
mov dword [esp + 0x6c], ebp
mov eax, ebp
cmp eax, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jle 0x4cd9b6
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0041f020
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x6c], 3
call fcn.004caf70
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edx
jmp 0x4cda0d
cmp ebp, ecx
jge 0x4cda30
lea ecx, [esp + 0x6c]
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x74], ebp
call fcn.004c53e0
mov edi, dword [esp + 0x6c]
mov edx, edi
sub edx, ebp
push edx
push ebp
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.0041f020
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.004ceeb0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
add eax, 0xfffffff0
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cda35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4cda35
mov ecx, dword [ebx]
mov edi, dword [ecx - 0xc]
cmp dword [esi + 0x164], 0
je 0x4cda59
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jle 0x4cda4f
mov ecx, edx
mov edx, dword [esp + 0x2c]
add dword [eax + 0xc], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx]
add dword [esp + 0x4c], eax
cmp edi, dword [ecx - 0xc]
jl 0x4cd902
mov eax, dword [esp + 0x70]
cmp dword [esi + 0x164], 0
je 0x4cdac1
mov ecx, dword [esi + 0x90]
mov edi, dword [eax + 8]
cmp ecx, edi
jle 0x4cda88
mov edi, ecx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edi
mov ecx, dword [esi + 0x94]
cmp ecx, edx
jg 0x4cda9a
mov ecx, edx
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x8c]
add edx, dword [esi + 0xa4]
lea edx, [edi + edx*2]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x8c]
add edx, dword [esi + 0xa4]
lea ecx, [ecx + edx*2]
mov dword [eax + 0x14], ecx
push 2
push 0x53c3b4
lea ecx, [esi + 0x3c]
call fcn.0041af30
push 1
mov ecx, esi
call fcn.004caca0
test eax, eax
je 0x4cdae4
mov ecx, esi
call fcn.004be9f0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cdb09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdb31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0xc