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

Disassembly:
push 0xffffffffffffffff
push 0x51cdf8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa4]
mov eax, dword [ebp + 0x38]
xor esi, esi
cmp eax, esi
jne 0x4d729a
xor ecx, ecx
jmp 0x4d72b0
mov ecx, dword [ebp + 0x3c]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [edi + edi*2]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jbe 0x4d72c4
or dword [esp + 0xc0], 8
mov al, byte [esp + 0xc0]
test al, 0x40
je 0x4d72d6
mov dword [esp + 0xb4], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
test al, 8
mov byte [esp + 0x9c], 2
je 0x4d74b4
mov esi, dword [ebp + 0x38]
cmp esi, dword [ebp + 0x3c]
jbe 0x4d7328
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], eax
jbe 0x4d7340
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, edi
lea edi, [ebp + 0x34]
cmp edi, edi
je 0x4d734d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x20]
je 0x4d7456
cmp esi, dword [edi + 8]
jb 0x4d7362
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx + 4]
push eax
mov esi, ebp
call fcn.004d80c0
test al, al
mov esi, dword [esp + 0x3c]
je 0x4d743f
cmp esi, dword [ebp + 0x3c]
jb 0x4d738f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
mov edi, dword [esi + 4]
je 0x4d73a5
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4d73ab
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x28]
test dword [edx + edi*8], 0x20000
je 0x4d73e9
mov ecx, dword [esp + 0x64]
test ecx, ecx
jne 0x4d73c3
xor eax, eax
jmp 0x4d73cc
mov eax, dword [esp + 0x68]
sub eax, ecx
sar eax, 2
cmp eax, ebx
jb 0x4d73e9
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4d73dc
xor eax, eax
jmp 0x4d73e5
mov eax, dword [esp + 0x58]
sub eax, ecx
sar eax, 2
cmp eax, ebx
jae 0x4d743f
cmp esi, dword [ebp + 0x3c]
jb 0x4d73f4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push edx
push eax
mov eax, dword [esp + 0xbc]
push ebx
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x78]
push edx
push eax
push ecx
push ebp
mov edi, esi
call fcn.004d84f0
mov ebx, eax
xor edi, edi
cmp ebx, edi
jle 0x4d7471
cmp esi, dword [ebp + 0x3c]
jb 0x4d744a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0x14
mov dword [esp + 0x3c], esi
jmp 0x4d7340
mov esi, dword [esp + 0xac]
push ebx
push esi
lea eax, [esp + 0x68]
call fcn.004d7180
xor edi, edi
add esp, 8
cmp eax, edi
jg 0x4d7499
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x4d7482
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
cmp eax, edi
jmp 0x4d8092
push eax
push esi
lea eax, [esp + 0x58]
call fcn.004d7180
mov ebx, eax
add esp, 8
cmp ebx, edi
mov dword [esp + 0xb0], ebx
jle 0x4d7471
mov esi, dword [esp + 0xc4]
mov edi, dword [esi + 4]
test edi, edi
je 0x4d75d3
mov eax, dword [esi + 8]
mov edx, eax
sub edx, edi
sar edx, 2
je 0x4d75d3
cmp edi, eax
jbe 0x4d74e0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x3c], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x4d74f2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x4d75d3
cmp eax, dword [esi + 8]
jb 0x4d7509
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx]
push eax
mov esi, ebp
call fcn.004d80c0
test al, al
mov esi, dword [esp + 0x3c]
je 0x4d7591
mov edx, dword [esp + 0xc4]
cmp esi, dword [edx + 8]
jb 0x4d7538
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push edx
push eax
mov eax, dword [esp + 0xbc]
push ebx
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x78]
push edx
push eax
push ecx
mov ecx, dword [esi]
push ebp
lea eax, [esp + 0xa8]
call fcn.004d82a0
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [esp + 0xb0], ebx
jle 0x4d75b6
mov edx, dword [esp + 0xc4]
cmp esi, dword [edx + 8]
jb 0x4d75a3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 4
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xc4]
jmp 0x4d74e4
mov eax, dword [esp + 0x84]
cmp eax, edi
je 0x4d7471
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4d7471
mov al, byte [esp + 0xc0]
test al, 0x10
je 0x4d770d
test al, 2
je 0x4d767d
mov edi, dword [ebp + 0x6c]
sub edi, 1
cmp edi, dword [ebp + 0x68]
jl 0x4d7b4e
lea esp, [esp]
mov eax, dword [esp + 0xa8]
push eax
mov esi, ebp
call fcn.004d80c0
test al, al
je 0x4d7669
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xbc]
push ebx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0xc0]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0xe0]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.004d82a0
mov ebx, eax
xor esi, esi
cmp ebx, esi
jle 0x4d805b
sub edi, 1
cmp edi, dword [ebp + 0x68]
jge 0x4d7600
mov dword [esp + 0xb0], ebx
jmp 0x4d7b4e
mov edi, dword [ebp + 0x68]
cmp edi, dword [ebp + 0x6c]
jge 0x4d7b4e
lea esp, [esp]
mov eax, dword [esp + 0xa8]
push eax
mov esi, ebp
call fcn.004d80c0
test al, al
je 0x4d76f9
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xbc]
push ebx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0xc0]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0xe0]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.004d82a0
mov ebx, eax
xor esi, esi
cmp ebx, esi
jle 0x4d805b
add edi, 1
cmp edi, dword [ebp + 0x6c]
jl 0x4d7690
mov dword [esp + 0xb0], ebx
jmp 0x4d7b4e
test al, 1
je 0x4d7a27
cmp byte [ebp + 0x74], 0
je 0x4d7721
push ebp
call fcn.004d6650
test byte [esp + 0xc0], 2
je 0x4d7931
mov eax, dword [ebp + 0x18]
test eax, eax
lea esi, [ebp + 0x14]
jne 0x4d773d
xor edi, edi
jmp 0x4d7745
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
mov eax, esi
call fcn.004d9750
mov eax, dword [eax]
add edi, 3
shr edi, 2
push eax
add edi, edi
add edi, edi
push edi
mov eax, esi
call fcn.00449ea0
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4d776c
xor eax, eax
jmp 0x4d7774
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
add eax, 0xffffffff
mov dword [esp + 0x20], eax
js 0x4d7b47
mov ecx, dword [esp + 0x20]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, eax
add eax, eax
and ecx, reloc.WS2_32.dll_closesocket
mov edi, eax
jns 0x4d77a3
dec ecx
or ecx, 0xfffffffc
inc ecx
sub edi, ecx
add edi, 3
mov dword [esp + 0x24], edi
jne 0x4d77b2
xor eax, eax
jmp 0x4d77d7
mov ecx, dword [esi + 4]
test ecx, ecx
lea edx, [edi - 1]
je 0x4d77c8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x4d77ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
lea eax, [edi - 1]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x1c], eax
jmp 0x4d77e0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
lea esi, [ebp + 0x14]
je 0x4d77f6
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4d77fc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + edi*4]
jge 0x4d78d9
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d781f
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jb 0x4d7825
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
add ecx, ecx
add ecx, ecx
mov edi, dword [eax + ecx]
add eax, ecx
mov ecx, dword [esp + 0xa8]
push ecx
mov esi, ebp
call fcn.004d80c0
test al, al
je 0x4d78cb
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d7861
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x4d7867
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xbc]
add eax, eax
add eax, eax
add ecx, eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 0xbc]
push edx
push eax
push ebx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0xc4]
push edx
push eax
mov eax, dword [esp + 0xe8]
push ebp
call fcn.004d82a0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xb0], ebx
jle 0x4d78e9
add dword [esp + 0x1c], 1
mov edi, dword [esp + 0x24]
jmp 0x4d77e0
sub dword [esp + 0x20], 1
jns 0x4d7781
jmp 0x4d7b4e
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4d78fd
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4d790e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
test eax, eax
jmp 0x4d8092
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
jbe 0x4d793f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x3c], edi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
lea edi, [ebp + 4]
jbe 0x4d7954
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
je 0x4d795c
cmp edi, edi
je 0x4d7962
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x3c], esi
je 0x4d7b47
test edi, edi
jne 0x4d7976
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [edi + 8]
jb 0x4d7985
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
push edx
mov esi, ebp
call fcn.004d80c0
test al, al
mov esi, dword [esp + 0x3c]
je 0x4d7a0d
cmp esi, dword [ebp + 0xc]
lea eax, [ebp + 4]
jb 0x4d79b0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xbc]
push ebx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0xc0]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0xe0]
push ecx
mov ecx, dword [esi]
push edx
push ebp
call fcn.004d82a0
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [esp + 0xb0], ebx
jle 0x4d75b6
cmp esi, dword [ebp + 0xc]
lea eax, [ebp + 4]
jb 0x4d7a1b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 4
mov dword [esp + 0x3c], esi
jmp 0x4d7943
mov eax, dword [0x5567ac]
mov edx, dword [0x55b808]
mov ecx, eax
shl ecx, 0xb
xor ecx, eax
mov eax, dword [0x55b804]
mov dword [0x55b804], edx
mov dword [0x5567ac], eax
mov eax, dword [0x55b80c]
mov edx, eax
shr edx, 0xb
xor edx, ecx
shr edx, 8
xor edx, ecx
mov dword [0x55b808], eax
xor eax, edx
mov edx, dword [ebp + 0x28]
test edx, edx
mov dword [0x55b80c], eax
jne 0x4d7a71
xor ecx, ecx
jmp 0x4d7a79
mov ecx, dword [ebp + 0x2c]
sub ecx, edx
sar ecx, 3
xor edx, edx
div ecx
test ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
jle 0x4d7b56
lea ecx, [ecx]
mov ebx, dword [esp + 0xc4]
jmp 0x4d7aa0
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x1c]
push eax
mov esi, ebp
call fcn.004d8140
test al, al
je 0x4d7b13
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x24], eax
jbe 0x4d7ac9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x4d7ad7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x4d7ae5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
mov eax, ebx
mov dword [esp + 0x34], esi
je 0x4d7aff
nop
mov ecx, dword [esi]
cmp ecx, dword [esp + 0x1c]
je 0x4d7aff
add esi, 4
cmp esi, edi
jne 0x4d7af0
test eax, eax
je 0x4d7b07
cmp eax, ebx
je 0x4d7b0d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x24]
je 0x4d7b5d
mov ecx, dword [ebp + 0x28]
add dword [esp + 0x1c], 1
test ecx, ecx
jne 0x4d7b23
xor eax, eax
jmp 0x4d7b2b
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
cmp dword [esp + 0x1c], eax
jne 0x4d7b39
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x20]
jne 0x4d7aa0
mov ebx, dword [esp + 0xb0]
test ebx, ebx
jg 0x4d7c76
xor esi, esi
jmp 0x4d805b
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, ebp
call fcn.004d8760
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov esi, dword [eax + 4]
cmp ecx, esi
mov dword [esp + 0x2c], esi
jge 0x4d7c30
mov edx, dword [ebp + 0x28]
test edx, edx
jne 0x4d7b9e
xor eax, eax
jmp 0x4d7ba6
mov eax, dword [ebp + 0x2c]
sub eax, edx
sar eax, 3
lea edx, [ecx + 1]
cmp edx, eax
mov dword [esp + 0x30], edx
jne 0x4d7bb6
mov eax, dword [ebp + 0x58]
jmp 0x4d7bb9
mov eax, dword [ebp + 0x54]
cmp dword [esp + 0xb4], 0
mov dword [esp + 0x1c], eax
jne 0x4d7bd8
mov edx, dword [esp + 0xb0]
cmp eax, edx
jle 0x4d7bd8
mov eax, edx
mov dword [esp + 0x1c], eax
xor edi, edi
test eax, eax
jle 0x4d7c24
mov esi, dword [esp + 0xac]
and ecx, 0x7ffff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
sub dword [esp + 0xb0], ecx
lea ebx, [ebx]
movzx edx, di
shl edx, 0x13
or edx, dword [esp + 0x24]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], edx
call fcn.004d9890
add edi, 1
cmp edi, dword [esp + 0x1c]
jl 0x4d7c00
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp ecx, esi
jl 0x4d7b93
mov ecx, dword [ebp + 0x28]
test ecx, ecx
mov dword [esp + 0x1c], esi
jne 0x4d7c3f
xor eax, eax
jmp 0x4d7c47
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jne 0x4d7c53
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
je 0x4d7b47
cmp dword [esp + 0xb0], 0
jg 0x4d7a90
xor esi, esi
jmp 0x4d805b
mov edi, dword [ebp + 0x38]
cmp edi, dword [ebp + 0x3c]
lea ebx, [ebp + 0x34]
jbe 0x4d7c87
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov dword [esp + 0x2c], esi
jbe 0x4d7ca0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esp, [esp]
cmp ebx, ebx
je 0x4d7caa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x4d7dcc
cmp edi, dword [ebx + 8]
jb 0x4d7cbd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x30], edx
cdq
and edx, 7
add eax, edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x30]
sar eax, 3
mov al, byte [eax + edx]
test al, cl
je 0x4d7db5
cmp edi, dword [ebx + 8]
jb 0x4d7cfc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
mov esi, dword [edi + 4]
je 0x4d7d12
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4d7d18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x28]
test dword [ecx + esi*8], 0x20000
je 0x4d7db5
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x9c], 3
cmp edi, dword [ebx + 8]
jb 0x4d7d49
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
push ebp
call fcn.004d84f0
mov byte [esp + 0x9c], 2
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
je 0x4d7da9
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
cmp edi, dword [ebx + 8]
jb 0x4d7dc0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x2c]
add edi, 0x14
jmp 0x4d7ca0
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x9c], 4
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x4d7df0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov dword [esp + 0x2c], esi
jbe 0x4d7e02
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, ebx
je 0x4d7e0c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x4d7f67
cmp edi, dword [ebx + 8]
jb 0x4d7e1f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov dword [esp + 0x30], edx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0xa8]
mov ecx, dword [edx]
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x30]
test dl, al
je 0x4d7f4d
cmp edi, dword [ebx + 8]
jb 0x4d7e5e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
mov esi, dword [edi + 4]
je 0x4d7e74
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4d7e7a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x28]
test dword [eax + esi*8], 0x1c0000
je 0x4d7f4d
cmp edi, dword [ebx + 8]
jb 0x4d7e95
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
jne 0x4d7ea0
xor eax, eax
jmp 0x4d7ea8
mov eax, dword [ebp + 0x2c]
sub eax, ecx
sar eax, 3
mov ecx, dword [edi + 4]
add ecx, 1
cmp ecx, eax
jne 0x4d7eb7
mov ebx, dword [ebp + 0x58]
jmp 0x4d7eba
mov ebx, dword [ebp + 0x54]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1b], 0
mov dword [esp + 0x20], esi
jle 0x4d7f4d
cmp edi, dword [ebp + 0x3c]
jb 0x4d7edc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 8]
mov ecx, dword [edx + esi*8 + 4]
lea eax, [edx + esi*8]
and ecx, 0xc000
cmp ecx, 0x4000
jne 0x4d7f3b
mov edx, dword [eax]
cmp edx, dword [esp + 0xb8]
je 0x4d7f3b
cmp edi, dword [ebp + 0x3c]
jb 0x4d7f0a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movzx eax, word [esp + 0x20]
mov ecx, dword [edi + 4]
shl eax, 0x13
and ecx, 0x7ffff
or eax, ecx
lea ebx, [esp + 0x30]
lea esi, [esp + 0x70]
mov dword [esp + 0x30], eax
call fcn.004d9890
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x1b], 1
add esi, 1
cmp esi, ebx
mov dword [esp + 0x20], esi
jl 0x4d7ed1
cmp byte [esp + 0x1b], 0
jne 0x4d7f67
cmp edi, dword [ebp + 0x3c]
lea ebx, [ebp + 0x34]
jb 0x4d7f5b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x2c]
add edi, 0x14
jmp 0x4d7e02
mov edx, dword [esp + 0xb0]
mov edi, dword [esp + 0xac]
push edx
push edi
lea eax, [esp + 0x68]
call fcn.004d7180
xor esi, esi
add esp, 8
cmp eax, esi
jg 0x4d7fa3
mov eax, dword [esp + 0x74]
cmp eax, esi
je 0x4d804f
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4d804f
push eax
push edi
lea eax, [esp + 0x58]
call fcn.004d7180
add esp, 8
test eax, eax
jle 0x4d7f89
test byte [esp + 0xc0], 4
jne 0x4d7f89
mov ebx, dword [esp + 0x74]
cmp ebx, esi
je 0x4d804d
mov esi, dword [esp + 0x78]
sub esi, ebx
sar esi, 2
je 0x4d803c
mov eax, dword [0x5567ac]
mov edx, dword [0x55b808]
mov ecx, eax
shl ecx, 0xb
xor ecx, eax
mov eax, dword [0x55b804]
mov dword [0x55b804], edx
mov dword [0x5567ac], eax
mov eax, dword [0x55b80c]
mov edx, eax
shr edx, 0xb
xor edx, ecx
shr edx, 8
xor edx, ecx
mov dword [0x55b808], eax
xor eax, edx
xor edx, edx
mov dword [0x55b80c], eax
div esi
mov edi, edx
cmp edi, esi
jb 0x4d8029
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0xac]
lea ebx, [ebx + edi*4]
call fcn.004d9890
mov ebx, dword [esp + 0x74]
xor esi, esi
cmp ebx, esi
je 0x4d804f
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4d804f
xor esi, esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x4d806f
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x4d8080
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
cmp eax, esi
je 0x4d809d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x24