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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
sub eax, edx
sar eax, 4
mov ebx, esi
imul eax, eax, 0x38e38e39
sub ebx, edx
test eax, eax
je 0x6c56f0
lea edx, [eax + eax]
cmp eax, edx
mov dword [ebp - 0x2c], edx
jbe 0x6c5730
mov dword [ebp - 0x2c], 0xffffff90
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.006ff530
mov dword [ebp - 0x30], eax
add ebx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
je 0x6c52de
mov eax, dword [ebp + 0x24]
mov ecx, ebx
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004558d0
sub esp, 0x20
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
cmp edi, dword [ebp + 8]
je 0x6c5750
mov ebx, dword [ebp - 0x30]
jmp 0x6c52f3
mov ebx, eax
test ebx, ebx
je 0x6c5468
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
lea ecx, [ebx + 0x24]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
movzx eax, byte [edi + 8]
mov byte [ebx + 8], al
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
lea eax, [edi + 0x24]
mov dword [esp], eax
call fcn.0041f8d0
lea eax, [edi + 0x2c]
sub esp, 4
lea ecx, [ebx + 0x2c]
mov dword [esp], eax
call fcn.0041f8d0
lea eax, [edi + 0x34]
sub esp, 4
lea ecx, [ebx + 0x34]
mov dword [esp], eax
call fcn.0041f8d0
mov eax, dword [edi + 0x3c]
sub esp, 4
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x5c]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x58], eax
movzx eax, byte [edi + 0x60]
mov byte [ebx + 0x60], al
movzx eax, byte [edi + 0x61]
mov byte [ebx + 0x61], al
mov eax, dword [edi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [edi + 0x6c]
sub eax, dword [edi + 0x68]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebp - 0x20], eax
sar eax, 3
test eax, eax
je 0x6c5710
cmp eax, 0x1fffffff
ja 0x6c57a0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.006ff530
mov dword [ebp - 0x1c], eax
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
add eax, edx
mov dword [ebx + 0x70], eax
mov ecx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov edx, ecx
sub edx, eax
cmp ecx, eax
mov dword [ebp - 0x20], edx
je 0x6c541d
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_puts
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
mov dword [ebx + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x78], eax
mov eax, dword [edi + 0x7c]
mov dword [ebx + 0x7c], eax
mov eax, dword [edi + 0x80]
mov dword [ebx + 0x80], eax
mov eax, dword [edi + 0x84]
mov dword [ebx + 0x84], eax
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [edi + 0x8c]
mov dword [ebx + 0x8c], eax
add edi, 0x90
cmp dword [ebp + 8], edi
lea eax, [ebx + 0x90]
jne 0x6c52f1
mov eax, dword [ebp - 0x24]
add ebx, 0x120
mov eax, dword [eax + 4]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
je 0x6c562f
mov dword [ebp - 0x38], ebx
nop
lea esi, [esi]
test ebx, ebx
je 0x6c5614
mov eax, dword [esi]
mov edx, dword [esi + 0x14]
lea ecx, [ebx + 0x24]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x14], edx
mov dword [ebx + 4], eax
movzx eax, byte [esi + 8]
mov byte [ebx + 8], al
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esp], eax
call fcn.0041f8d0
lea eax, [esi + 0x2c]
sub esp, 4
lea ecx, [ebx + 0x2c]
mov dword [esp], eax
call fcn.0041f8d0
lea eax, [esi + 0x34]
sub esp, 4
lea ecx, [ebx + 0x34]
mov dword [esp], eax
call fcn.0041f8d0
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x5c]
sub esp, 4
mov ecx, dword [esi + 0x6c]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x5c], edx
mov edx, ecx
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x58], eax
movzx eax, byte [esi + 0x60]
mov byte [ebx + 0x60], al
movzx eax, byte [esi + 0x61]
mov byte [ebx + 0x61], al
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x68]
sub edx, eax
mov dword [ebp - 0x1c], edx
sar edx, 3
test edx, edx
je 0x6c5720
cmp edx, 0x1fffffff
ja 0x6c5770
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.006ff530
mov ecx, dword [esi + 0x6c]
mov edi, eax
mov eax, dword [esi + 0x68]
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x1c]
add edx, edi
cmp ecx, eax
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x6c], edi
mov dword [ebx + 0x70], edx
je 0x6c55cc
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], ecx
call sub.msvcrt.dll_puts
mov eax, dword [esi + 0x74]
add edi, dword [ebp - 0x20]
mov dword [ebx + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [ebx + 0x6c], edi
mov dword [ebx + 0x78], eax
mov eax, dword [esi + 0x7c]
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x8c], eax
add esi, 0x90
add ebx, 0x90
cmp esi, dword [ebp - 0x28]
jne 0x6c54a0
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp eax, esi
je 0x6c56c2
lea edi, [eax + 0x90]
mov dword [ebp - 0x1c], eax
sub esi, edi
shr esi, 4
imul esi, esi, 0x8e38e39
and esi, 0xfffffff
lea esi, [esi + esi*8 + 9]
shl esi, 4
add esi, eax
jmp 0x6c5679
mov dword [esp], eax
call fcn.006ff4e0
cmp esi, edi
mov dword [ebp - 0x1c], edi
je 0x6c56bd
mov eax, dword [ebp - 0x1c]
add edi, 0x90
mov eax, dword [eax + 0x68]
test eax, eax
je 0x6c5688
mov dword [esp], eax
call fcn.006ff4f0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x6c569a
mov dword [esp], eax
call fcn.006ff4e0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x6c56ac
mov dword [esp], eax
call fcn.006ff4e0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x6c5661
cmp edi, esi
mov dword [ebp - 0x1c], edi
jne 0x6c5670
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
test esi, esi
je 0x6c56ce
mov dword [esp], esi
call fcn.006ff4f0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
add eax, dword [ebp - 0x2c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
lea eax, [eax + eax*8]
shl eax, 4
mov dword [ebp - 0x2c], eax
jmp 0x6c5286
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
jmp 0x6c53eb
mov edx, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 0x20], edx
jmp 0x6c55aa
cmp edx, 0x1c71c71
ja 0x6c527c
test edx, edx
jne 0x6c56f7
mov dword [ebp - 0x30], 0
jmp 0x6c5291
mov eax, dword [ebp - 0x30]
lea ebx, [eax + 0x90]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
cmp dword [ebp + 8], eax
mov dword [ebp - 0x28], eax
jne 0x6c5495
jmp 0x6c56c2
call fcn.006f7400
lea ecx, [ebx + 0x1c]
mov esi, eax
call fcn.00636100
mov dword [esp], esi
call fcn.006ff710
mov esi, dword [ebp - 0x38]
cmp ebx, esi
je 0x6c57cd
mov ecx, esi
add esi, 0x90
call fcn.00558610
jmp 0x6c578a
call fcn.006f7400
lea ecx, [ebx + 0x1c]
mov esi, eax
call fcn.00636100
mov dword [esp], esi
call fcn.006ff710
mov esi, dword [ebp - 0x30]
cmp ebx, esi
je 0x6c57d2
mov ecx, esi
add esi, 0x90
call fcn.00558610
jmp 0x6c57ba
call fcn.006ffd80
call fcn.006ffd80
mov ebx, eax
call fcn.006ff900
mov dword [esp], ebx
call fcn.006ff710
cmp dword [ebp - 0x38], 0
je 0x6c5812
mov ebx, dword [ebp - 0x30]
cmp ebx, dword [ebp - 0x38]
je 0x6c581a
mov ecx, ebx
add ebx, 0x90
call fcn.00558610
jmp 0x6c57ef
mov ecx, dword [ebp - 0x34]
call fcn.00558610
cmp dword [ebp - 0x30], 0
je 0x6c582b
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.006ff4f0
call fcn.006ffd80
mov esi, eax
jmp 0x6c57af