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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x30]
mov ebp, dword [edx]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x14], ecx
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ebp
call fcn.6d5ca1c9
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
jae 0x6d5c4bbe
inc eax
mov dword [ebp + 4], eax
lea ecx, [esp + 0x3c]
call fcn.6d5cb91b
lea eax, [esp + 0x44]
push eax
call fcn.6d5c4420
add esp, 4
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
call fcn.6d5ca1c9
mov eax, dword [ebp + 4]
test eax, eax
je 0x6d5c4bf3
cmp eax, 0xffffffff
jae 0x6d5c4bf3
dec eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 4]
neg eax
sbb eax, eax
not eax
and eax, ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.6d5cb91b
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x6d5c4c1b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ebp, dword [esp + 0x44]
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x6c]
push eax
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
movzx eax, ax
lea ecx, [edi + 8]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x38], eax
push 1
lea eax, [esp + 0x2c]
xor ebp, ebp
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebp
mov byte [esp + 0x64], 0
mov byte [esp + 0x34], 0x30
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], ebp
call fcn.6d5ca1c9
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x6d5c4c8a
mov dword [esp + 0x24], ebp
cmp al, 0x2d
jne 0x6d5c4c92
mov dword [esp + 0x24], 1
call dword [sym.imp.MSVCR100.dll_localeconv]
mov edx, dword [eax]
mov al, byte [edx]
mov ebp, dword [sym.imp.MSVCR100.dll_memchr]
push ebx
push 0x65
push esi
mov byte [esp + 0x28], al
mov word [esp + 0x29], 0x65
call ebp
movsx ecx, byte [esp + 0x28]
push ebx
push ecx
push esi
mov dword [esp + 0x28], eax
call ebp
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x6d5c4cce
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
mov ecx, eax
cmp edx, 0x10
jae 0x6d5c4ce4
lea ecx, [esp + 0x6c]
cmp byte [ecx], 0x7f
je 0x6d5c4e1f
cmp edx, 0x10
jae 0x6d5c4cf6
lea eax, [esp + 0x6c]
cmp byte [eax], 0
jle 0x6d5c4e1f
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.6d5c33c0
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x6d5c4d24
mov edx, dword [esp + 0x14]
push 0x30
push edx
lea ecx, [esp + 0x58]
call fcn.6d5a7b10
jmp 0x6d5c4d4f
test ebp, ebp
jne 0x6d5c4d3c
mov eax, dword [esp + 0x18]
push 0x30
push eax
lea ecx, [esp + 0x58]
call fcn.6d5a7b10
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x14]
push 0x30
push ecx
sub ebx, esi
push ebx
lea ecx, [esp + 0x5c]
call fcn.6d5c3990
push 0x30
test ebp, ebp
jne 0x6d5c4d65
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call fcn.6d5a7b10
jmp 0x6d5c4d94
mov eax, dword [esp + 0x3c]
mov ebx, ebp
sub ebx, esi
push eax
lea ecx, [ebx + 1]
push ecx
lea ecx, [esp + 0x5c]
call fcn.6d5c3990
mov edx, dword [esp + 0x18]
push 0x30
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.6d5c3990
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x6c]
mov ebp, 0x10
mov dword [esp + 0x18], 0
cmp dword [esp + 0x80], ebp
jae 0x6d5c4db2
lea ebx, [esp + 0x6c]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x6d5c4dc0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_strcspn]
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x6d5c4e05
test al, al
jle 0x6d5c4e05
mov edx, esi
sub edx, dword [esp + 0x24]
movsx eax, al
cmp eax, edx
jae 0x6d5c4e05
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x5c]
call fcn.6d5c3990
cmp byte [ebx + 1], 0
jle 0x6d5c4dff
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x6d5c4dd7
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x64], ebp
jae 0x6d5c4e13
lea esi, [esp + 0x50]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 0x20]
add eax, ebx
add eax, dword [esp + 0x38]
add eax, dword [esp + 0x18]
cmp dword [ebp + 0x24], 0
jl 0x6d5c4e4c
jg 0x6d5c4e40
test ecx, ecx
je 0x6d5c4e4c
cmp ecx, eax
jbe 0x6d5c4e4c
sub ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x6d5c4e54
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x6d5c4f2c
cmp eax, 0x100
je 0x6d5c4ea9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push edx
push edi
call fcn.6d5c2800
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb4], edx
jmp 0x6d5c4f21
cmp dword [esp + 0x24], 0
jbe 0x6d5c4ee6
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
push 1
push esi
push eax
push ecx
lea edx, [esp + 0x34]
push edx
push edi
call fcn.6d5c2870
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
add esp, 0x18
inc esi
mov dword [esp + 0x9c], edx
dec ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x9c]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.6d5c2800
mov edx, dword [eax]
mov dword [esp + 0xb0], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x28], 0
add esp, 0x18
movsx ecx, byte [esp + 0x1c]
push ebx
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je 0x6d5c502d
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
sub eax, esi
push edx
mov edx, dword [esp + 0x9c]
lea ebp, [eax + 1]
lea eax, [ebp - 1]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.6d5ca1c9
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.6d5c2800
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xd0], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0x34
call edx
mov ecx, dword [esp + 0x98]
movzx eax, ax
push 1
push eax
mov eax, dword [esp + 0xa4]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
push edi
call fcn.6d5c2800
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
push edi
call fcn.6d5c2800
mov ecx, dword [eax]
mov dword [esp + 0xc8], ecx
mov edx, dword [eax + 4]
add esi, ebp
add esp, 0x30
sub ebx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
push ebx
push 0x65
push esi
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je 0x6d5c5100
mov edx, dword [esp + 0x9c]
sub eax, esi
lea ebp, [eax + 1]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x9c]
lea ecx, [ebp - 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.6d5ca1c9
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x68]
push ecx
push edi
call fcn.6d5c2800
mov edx, dword [eax]
mov dword [esp + 0xcc], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x68]
add esp, 0x34
test byte [edx + 0x14], 4
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x14], 0
mov ecx, 0x6d5d8f64
jne 0x6d5c50cd
mov ecx, 0x6d5d8f60
mov edx, dword [eax]
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.6d5c2870
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
add esi, ebp
add esp, 0x18
sub ebx, ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
push eax
push ebx
push esi
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.6d5ca1c9
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x68]
push eax
push edi
call fcn.6d5c2800
mov ecx, dword [eax]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0xdc]
push edx
mov dword [esp + 0xd4], ecx
mov eax, dword [eax + 4]
push eax
push ecx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xe8], eax
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
call fcn.6d5c2800
mov edi, 0x10
add esp, 0x4c
cmp dword [esp + 0x64], edi
jb 0x6d5c51a4
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x80], edi
jb 0x6d5c51ca
mov ecx, dword [esp + 0x6c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x7c
ret