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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x626418
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x6b9a04]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004c72a9
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp edi, ebx
jne 0x4cd77b
mov ecx, esi
call fcn.004c7543
test eax, eax
jle 0x4cd77b
lea eax, [esp + 0x2c]
push eax
push ebx
push 1
push dword [ebp + 0x10]
mov ecx, esi
call fcn.005a305b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
jmp 0x4cd78c
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.005a305b
push dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
call fcn.005ac35a
push edi
mov ecx, esi
call fcn.004c7ba7
pop ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
push eax
push 1
push edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.005a305b
mov eax, dword [esp + 0x18]
sub eax, ebx
je 0x4cd9fb
dec eax
je 0x4cd98b
dec eax
je 0x4cd844
dec eax
jne 0x4cdaa5
mov esi, dword [ebp + 0x14]
call fcn.004a0e7a
movzx eax, al
dec eax
mov dword [esp + 0x18], eax
js 0x4cdaa5
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x278], ebx
je 0x4cdaa5
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 3
lea ebx, [esp + 0x70]
movsd dword es:[edi], dword [esi]
call fcn.004cd6ad
mov eax, dword [ebp + 8]
sub esp, 0x10
mov edi, esp
push 1
push dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x38]
push dword [eax + 0x278]
jmp 0x4cda8d
call fcn.0040cb83
call fcn.0049b7e4
test eax, eax
je 0x4cdaa5
push esi
call fcn.004cffdb
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
lea ebx, [esp + 0x60]
movsd dword es:[edi], dword [esi]
call fcn.004cd6ad
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
and dword [esp + 0x18], 0
mov esi, ebx
mov ebx, dword [ebp + 0x14]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cdq
sub eax, edx
movsd dword es:[edi], dword [esi]
sar eax, 1
add eax, dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x54], eax
call fcn.004a0d43
mov edi, eax
dec edi
js 0x4cd90c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x26c]
sub eax, dword [esi + 0x268]
add esi, 0x25c
sar eax, 2
cmp edi, eax
jge 0x4cd90c
call fcn.0044280d
cmp dword [eax], 0
je 0x4cd90c
call fcn.0044280d
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
mov edi, esp
push dword [ecx + 4]
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
movsd dword es:[edi], dword [esi]
push ecx
push dword [eax]
movsd dword es:[edi], dword [esi]
call fcn.00594fdc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
push ebx
call fcn.004a0d4b
cmp eax, 0xffffffff
je 0x4cd91a
add eax, 3
test eax, eax
jl 0x4cdaa5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x26c]
sub edx, dword [ecx + 0x268]
add ecx, 0x25c
sar edx, 2
cmp eax, edx
jge 0x4cdaa5
mov edx, dword [esp + 0x3c]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
lea edx, [edx + esi + 2]
mov edi, eax
mov esi, ecx
mov dword [esp + 0x4c], edx
call fcn.0044280d
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
mov edi, esp
push dword [ecx + 4]
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push ecx
push dword [eax]
movsd dword es:[edi], dword [esi]
call fcn.00594fdc
jmp 0x4cdaa5
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x64]
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x4cdaa5
cmp dword [esi + 0x274], ebx
je 0x4cdaa5
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea ebx, [esp + 0x70]
movsd dword es:[edi], dword [esi]
call fcn.004cd6ad
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x274]
sub esp, 0x10
mov edi, esp
push dword [esp + 0x24]
mov esi, ebx
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.005398a5
jmp 0x4cdaa5
mov edi, dword [ebp + 0x14]
push 1
lea eax, [esp + 0x24]
push eax
call fcn.0049fcff
mov dword [esp + 0x78], ebx
push dword [eax]
call fcn.004010df
mov ebx, eax
call fcn.00438a6e
or dword [esp + 0x78], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov edi, eax
call fcn.00405172
mov ecx, dword [ebp + 0x14]
push edi
call fcn.0043a4df
mov dword [esp + 0x18], eax
test eax, eax
jl 0x4cdaa5
cmp dword [esi + 0x258], 0
je 0x4cdaa5
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
lea ebx, [esp + 0x70]
movsd dword es:[edi], dword [esi]
call fcn.004cd6ad
mov eax, dword [ebp + 8]
sub esp, 0x10
mov edi, esp
push 1
push dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x38]
push dword [eax + 0x258]
push dword [ebp + 0xc]
lea esi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00561d8d
add esp, 0x30
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10