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

Disassembly:
sub esp, 0x570
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
call fcn.00676ab0
test eax, eax
jne 0x676eaf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x570
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x677229
cmp eax, 0x40
jbe 0x676ecd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x570
ret
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jbe 0x677229
mov dword [esp + 0x14], ebx
jmp 0x676ee3
mov ebx, dword [esp + 0x14]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0x143
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x676f6c
mov ecx, dword [esi + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
je 0x676f6c
mov ebp, dword [esi + 0x60]
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, ebp
sub ecx, edi
add ebx, edx
sar ecx, 2
test ecx, ecx
jle 0x676f44
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + eax*4], ebx
jae 0x676f3e
or edx, 0xffffffff
lea edi, [edi + eax*4 + 4]
sub edx, eax
add ecx, edx
jmp 0x676f40
mov ecx, eax
test ecx, ecx
jg 0x676f25
cmp edi, ebp
je 0x677209
cmp ebx, dword [edi]
jb 0x677209
mov ecx, dword [esi + 4]
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.0063c940
test eax, eax
je 0x676ec0
jmp 0x676f88
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
add ebx, edx
push ecx
mov ecx, dword [esi + 4]
push ebx
call fcn.0063c940
test eax, eax
je 0x676ec0
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x68]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
jne 0x676fdd
xor edx, edx
jmp 0x676ff3
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, 0x6572ec3
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
test edx, edx
jle 0x67700f
mov edi, dword [esi + 0x6c]
cmp dword [edi], ebx
je 0x677097
inc eax
add edi, 0x50c
cmp eax, edx
jl 0x676ffc
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov dword [esp + 0x34], edi
push edx
push 1
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
call fcn.00677c30
inc edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
lea ebx, [esi + 0x78]
sub edx, ecx
mov eax, 0x38e38e39
mov ebp, ecx
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x677141
mov esi, dword [ebx + 4]
test esi, esi
je 0x67708a
mov edx, ecx
mov eax, 0x38e38e39
sub edx, esi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x67708f
mov edi, 1
test esi, esi
jne 0x67709d
xor edx, edx
jmp 0x6770b0
mov dword [esp + 0x34], eax
jmp 0x67703a
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea esi, [edx + edi]
test esi, esi
mov eax, esi
jge 0x6770bb
xor eax, eax
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.00697be2
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push ebp
push eax
call fcn.0063b690
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00678270
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
add edx, 0x24
mov ecx, ebx
push edx
push eax
push ebp
call fcn.0063b690
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.0057e9e0
mov eax, dword [ebx + 4]
push eax
call fcn.00697880
lea ecx, [esi + esi*8]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00677ad0
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 4], edi
lea eax, [eax + eax*8]
lea ecx, [edi + eax*4]
mov dword [ebx + 8], ecx
jmp 0x677209
mov edx, ecx
mov eax, 0x38e38e39
sub edx, ebp
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x6771b2
lea edx, [ebp + 0x24]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.0063b690
mov edi, dword [ebx + 8]
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00678270
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x677205
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x67719c
jmp 0x677201
lea eax, [ecx - 0x24]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.0063b690
mov edx, dword [ebx + 8]
lea eax, [edx - 0x24]
cmp ebp, eax
je 0x6771e6
sub eax, 0x24
sub edx, 0x24
mov ecx, 9
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x6771cd
mov esi, dword [esp + 0x10]
lea eax, [ebp + 0x24]
cmp ebp, eax
je 0x677205
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x6771ed
mov esi, dword [esp + 0x10]
add dword [ebx + 8], 0x24
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jb 0x676edf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x570
ret