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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0xb8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x18], 0
call fcn.0064eb40
push 0x1d
push str.third_party_bsdiff_create.cc
call fcn.006345b0
add esp, 0xc
cmp eax, 1
jl 0x631b8e
push 0xffffffffffffffff
push 0xcf
push str.third_party_bsdiff_create.cc
lea ecx, [esp + 0xd4]
call fcn.00633660
add eax, 8
push str.Start_bsdiff
push eax
call fcn.004d4587
mov eax, 1
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x631b92
mov eax, dword [esp + 0x14]
test al, 1
je 0x631ba9
and eax, 0xfffffffe
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], eax
call fcn.00633930
mov eax, dword [edi + 4]
lea ecx, [esp + 0x190]
mov dword [esp + 0xa4], eax
call fcn.0062fde0
mov eax, dword [esp + 0x190]
lea edx, [esp + 0x194]
xor ecx, ecx
mov dword [esp + 0x58], 0
cmp ecx, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
sbb ecx, ecx
mov dword [esp + 0x60], 0
and ecx, edx
mov dword [esp + 0x64], 0
mov dword [esp + 0xa0], ecx
lea edx, [esp + 0x1a4]
mov ecx, 1
cmp ecx, eax
sbb ecx, ecx
and ecx, edx
lea edx, [esp + 0x1b4]
mov dword [esp + 0xb0], ecx
mov ecx, 2
cmp ecx, eax
sbb ecx, ecx
and ecx, edx
lea edx, [esp + 0x1c4]
mov dword [esp + 0x90], ecx
mov ecx, 3
cmp ecx, eax
sbb ecx, ecx
and ecx, edx
lea edx, [esp + 0x1d4]
mov dword [esp + 0x8c], ecx
mov ecx, 4
cmp ecx, eax
sbb ecx, ecx
and ecx, edx
mov dword [esp + 0x98], ecx
mov ecx, 5
cmp ecx, eax
lea ecx, [esp + 0x1e4]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 4]
sub ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], ebx
lea edi, [ebx + 1]
push edi
call fcn.00631a10
test al, al
jne 0x631db0
call fcn.006345a0
cmp eax, 2
jg 0x631cfb
or dword [esp + 0x14], 2
lea ecx, [esp + 0xc8]
push 2
push 0xe3
push str.third_party_bsdiff_create.cc
call fcn.00633660
push str._bytes
lea ecx, [ebx*4 + 4]
add eax, 8
push ecx
push str.Could_not_allocate_I___
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.0062bd50
push eax
call fcn.004d4587
add esp, 8
test byte [esp + 0x14], 2
je 0x631d0e
lea ecx, [esp + 0xc8]
call fcn.00633930
mov esi, 1
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x631d50
mov eax, dword [esp + 0x64]
test eax, eax
je 0x631d3f
dec eax
mov dword [esp + 0x64], eax
push dword [ecx + eax*4]
call fcn.00682d6d
mov eax, dword [esp + 0x68]
add esp, 4
mov ecx, dword [esp + 0x60]
test eax, eax
jne 0x631d23
push ecx
call fcn.00682d6d
add esp, 4
mov dword [esp + 0x60], 0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x631d8d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x631d7c
dec eax
mov dword [esp + 0x34], eax
push dword [ecx + eax*4]
call fcn.00682d6d
mov eax, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x30]
test eax, eax
jne 0x631d60
push ecx
call fcn.00682d6d
add esp, 4
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x190]
call fcn.0062ffd0
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [esp + 0x64]
call fcn.00631a10
test al, al
jne 0x631e1d
call fcn.006345a0
cmp eax, 2
jg 0x631e13
or dword [esp + 0x14], 4
lea ecx, [esp + 0xc8]
push 2
push 0xe9
push str.third_party_bsdiff_create.cc
call fcn.00633660
push str._bytes
lea ecx, [ebx*4 + 4]
add eax, 8
push ecx
push str.Could_not_allocate_V___
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.0062bd50
push eax
call fcn.004d4587
add esp, 8
test byte [esp + 0x14], 4
jmp 0x631d00
lea eax, [esp + 0xb8]
push eax
call fcn.0064eb40
push ebx
push dword [esp + 0x28]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.006326d0
push 0x1d
push str.third_party_bsdiff_create.cc
call fcn.006345b0
mov ebx, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 1
jl 0x631ede
mov esi, dword [esp + 0xb8]
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0xbc]
or ebx, 8
push eax
mov dword [esp + 0x18], ebx
call fcn.0064eb40
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, esi
push 0xffffffffffffffff
push 0xf0
sbb eax, edi
mov dword [esp + 0x88], ecx
push str.third_party_bsdiff_create.cc
lea ecx, [esp + 0xd4]
mov dword [esp + 0x90], eax
call fcn.00633660
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.0064e1e0
sub esp, 8
lea eax, [esi + 8]
fstp qword [esp]
push str._done_qsufsort
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.00631910
mov esi, dword [esp + 0x38]
test bl, 8
je 0x631ef6
and ebx, 0xfffffff7
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], ebx
call fcn.00633930
lea ecx, [esp + 0x60]
call fcn.00632650
mov edx, dword [esi + 8]
xor eax, eax
mov edi, dword [esi + 4]
xor ebx, ebx
sub edi, edx
mov dword [esp + 0x2c], edx
xor esi, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x6c], esi
test edi, edi
jle 0x6323e2
add ebx, esi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x68], ecx
mov esi, ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], ebx
cmp ebx, dword [esp + 0x48]
jge 0x632052
lea ecx, [ebx + edx]
mov edx, dword [esp + 0x48]
sub edx, ebx
mov dword [esp + 0x4c], ecx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], eax
nop dword [eax]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x60]
push eax
push 0
push edx
push ecx
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
call fcn.006329c0
mov ecx, eax
add esp, 0x20
add ebx, ecx
mov dword [esp + 0x6c], ecx
cmp esi, ebx
jge 0x631fee
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add edx, esi
lea ecx, [edx + eax]
cmp ecx, dword [esp + 0x5c]
jge 0x631fe5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, esi
mov al, byte [eax + ecx]
cmp al, byte [edx]
mov eax, dword [esp + 0x18]
jne 0x631fe5
inc edi
inc esi
cmp esi, ebx
jl 0x631fc0
mov ecx, dword [esp + 0x6c]
cmp ecx, edi
jne 0x631ff6
test ecx, ecx
jne 0x632042
mov ebx, dword [esp + 0x40]
lea eax, [edi + 8]
cmp ecx, eax
jg 0x632046
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
add eax, ecx
cmp eax, dword [esp + 0x5c]
jge 0x632023
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add eax, ebx
mov al, byte [eax + edx]
cmp al, byte [ecx]
jne 0x632023
dec edi
mov edx, dword [esp + 0x50]
inc ebx
dec edx
mov dword [esp + 0x40], ebx
inc ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
cmp ebx, dword [esp + 0x48]
jl 0x631f90
jmp 0x632046
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x6c]
cmp esi, edi
mov edi, dword [esp + 0x48]
jne 0x632066
cmp ebx, edi
jne 0x6323d8
mov dword [esp + 0x24], 0
cmp ebx, edi
jge 0x6320f7
mov eax, dword [esp + 0x28]
xor edi, edi
inc eax
mov dword [esp + 0x10], edi
lea esi, [edi + 1]
cmp ebx, eax
jl 0x6320f7
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
dec edx
add edx, ecx
dec eax
add eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
nop
cmp ecx, esi
jl 0x6320f7
mov al, byte [eax]
lea ecx, [edi + 1]
cmp byte [edx], al
mov eax, dword [esp + 0x10]
cmovne ecx, edi
mov edi, ecx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x24]
sub ecx, eax
lea edx, [edi + edi]
sub edx, esi
cmp edx, ecx
cmovg eax, esi
dec dword [esp + 0x1c]
dec dword [esp + 0x18]
inc esi
mov dword [esp + 0x24], eax
cmp edx, ecx
mov ecx, dword [esp + 0x68]
mov eax, edi
cmovle eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add eax, esi
cmp ebx, eax
mov eax, dword [esp + 0x1c]
jge 0x6320a0
mov ecx, dword [esp + 0x28]
xor edx, edx
xor edi, edi
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
cmp ecx, ebx
jge 0x632175
mov eax, dword [esp + 0x44]
add eax, esi
cmp eax, dword [esp + 0x5c]
jge 0x632175
mov edi, dword [esp + 0x2c]
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x44]
inc edx
add ecx, esi
mov al, byte [eax + edi]
mov edi, dword [esp + 0x20]
cmp byte [ecx + edi], al
mov ecx, dword [esp + 0x1c]
cmovne edx, dword [esp + 0x10]
inc esi
mov eax, edx
add ecx, ecx
sub ecx, dword [esp + 0x18]
mov edi, esi
mov dword [esp + 0x10], eax
lea edx, [eax + eax]
sub edx, esi
cmp edx, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
cmovle eax, dword [esp + 0x1c]
cmovle edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea eax, [esi + ecx]
mov dword [esp + 0x18], edi
cmp eax, ebx
jl 0x632111
mov esi, dword [esp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0x24]
sub ecx, edx
mov dword [esp + 0x38], ecx
lea eax, [edi + esi]
cmp eax, ecx
jle 0x632272
mov ecx, edi
xor eax, eax
sub ecx, ebx
mov dword [esp + 0x50], eax
add ecx, edx
xor edx, edx
add ecx, esi
mov dword [esp + 0xa8], edx
xor esi, esi
mov dword [esp + 0x4c], ecx
test ecx, ecx
jle 0x63225e
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov eax, edi
mov edi, dword [esp + 0x80]
sub eax, ecx
mov ecx, dword [esp + 0x28]
add ecx, eax
add eax, dword [esp + 0x44]
add ecx, dword [esp + 0x2c]
add eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
nop dword [eax]
mov ebx, dword [esp + 0x1c]
lea ecx, [edx + 1]
mov al, byte [eax]
cmp byte [ebx], al
mov ebx, dword [esp + 0x10]
mov al, byte [edi]
cmovne ecx, edx
cmp byte [ebx], al
mov ebx, dword [esp + 0x4c]
lea edx, [ecx - 1]
cmovne edx, ecx
cmp edx, dword [esp + 0xa8]
jle 0x632237
lea eax, [esi + 1]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
inc esi
inc dword [esp + 0x1c]
inc eax
inc dword [esp + 0x10]
inc edi
mov dword [esp + 0x38], eax
cmp esi, ebx
jl 0x632200
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
sub eax, ecx
add edi, eax
sub edx, dword [esp + 0x50]
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
xor esi, esi
test edi, edi
jle 0x632307
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], ecx
nop word [eax + eax]
mov al, byte [esi + eax]
sub al, byte [esi + ecx]
mov byte [esp + 0x3f], al
je 0x6322f4
push dword [esp + 0x58]
mov ecx, dword [esp + 0x90]
inc dword [esp + 0x7c]
call fcn.00630b30
test al, al
je 0x631d0e
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x3f]
push 1
push eax
mov dword [esp + 0x60], 0
call fcn.00630810
test al, al
je 0x631d0e
mov ecx, dword [esp + 0x80]
jmp 0x6322f8
inc dword [esp + 0x58]
mov eax, dword [esp + 0x38]
inc esi
cmp esi, edi
jl 0x6322a0
mov esi, dword [esp + 0x54]
jmp 0x63230b
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
mov edi, ebx
mov ecx, dword [esp + 0x24]
sub edi, eax
mov edx, dword [esp + 0x28]
sub edi, ecx
sub edi, edx
xor ebx, ebx
test edi, edi
jle 0x632359
lea esi, [eax + edx]
add esi, dword [esp + 0x2c]
nop dword [eax]
mov ecx, dword [esp + 0x9c]
push 1
push esi
call fcn.00630810
test al, al
je 0x631d0e
inc ebx
inc esi
cmp ebx, edi
jl 0x632330
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x7c], eax
sub esi, eax
add dword [esp + 0x74], edi
sub esi, ecx
mov ecx, dword [esp + 0xa0]
sub esi, dword [esp + 0x44]
push eax
call fcn.00630b30
test al, al
je 0x631d0e
mov ecx, dword [esp + 0xb0]
push edi
call fcn.00630b30
test al, al
je 0x631d0e
mov ecx, dword [esp + 0x90]
push esi
call fcn.00630b90
test al, al
je 0x631d0e
mov ebx, dword [esp + 0x40]
mov ecx, ebx
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x24]
sub ecx, dword [esp + 0x24]
mov eax, edx
inc dword [esp + 0x70]
sub eax, ecx
mov edi, dword [esp + 0x48]
cmp ebx, edi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
jl 0x631f55
push dword [esp + 0x58]
mov esi, dword [esp + 0x90]
mov ecx, esi
call fcn.00630b30
test al, al
je 0x631d0e
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x63243d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x63242c
nop dword [eax]
dec eax
mov dword [esp + 0x34], eax
push dword [ecx + eax*4]
call fcn.00682d6d
mov eax, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x30]
test eax, eax
jne 0x632410
push ecx
call fcn.00682d6d
add esp, 4
mov dword [esp + 0x30], 0
mov eax, dword [str.GBSDIF42]
mov dword [esp + 0x17c], eax
mov eax, dword [0x74c9bc]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x5c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x18c], eax
call fcn.00630cd0
add esp, 8
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], edi
lea eax, [esp + 0x17c]
mov edi, dword [esp + 0x88]
mov ecx, edi
push 8
push eax
call fcn.00630810
push dword [esp + 0x184]
mov ecx, edi
mov bl, al
call fcn.00630b30
push dword [esp + 0x188]
mov ecx, edi
and bl, al
call fcn.00630b30
push dword [esp + 0x18c]
mov ecx, edi
and bl, al
call fcn.00630b30
test bl, al
je 0x631d0e
mov ebx, dword [esi + 4]
lea ecx, [esp + 0x190]
push edi
call fcn.00630180
test al, al
je 0x631d0e
push 0x1d
push str.third_party_bsdiff_create.cc
call fcn.006345b0
add esp, 8
cmp eax, 1
jl 0x632634
or dword [esp + 0x14], 0x10
lea eax, [esp + 0xb0]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
push eax
call fcn.0064eb40
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub ecx, esi
push 0xffffffffffffffff
sbb eax, edi
mov dword [esp + 0x94], ecx
mov edi, dword [esp + 0x8c]
lea ecx, [esp + 0xcc]
push 0x1b9
push str.third_party_bsdiff_create.cc
mov dword [esp + 0xa0], eax
mov esi, dword [edi + 4]
call fcn.00633660
lea ecx, [esp + 0x90]
mov edi, eax
call fcn.0064e1e0
sub esi, dword [esp + 0xa4]
lea eax, [edi + 8]
sub esp, 8
fstp qword [esp]
push str._nEnd_bsdiff
push esi
push str._nUncompressed_bsdiff_patch_size
push dword [esp + 0x88]
push str.__extra_bytes:
push 0x6fb390
push ebx
push str.___skips:
push dword [esp + 0xa0]
push str.__mistakes:
push dword [esp + 0xac]
push str.__copy_bytes:
push dword [esp + 0xa8]
push str.Control_tuples:
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.004d5b90
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.004d5b90
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.004d5b90
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.0062bd50
push eax
call fcn.004d4587
add esp, 8
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.004d5b90
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.0062bd50
push eax
call fcn.004d4587
add esp, 8
mov ecx, eax
call fcn.00631910
test byte [esp + 0x14], 0x10
je 0x632647
lea ecx, [esp + 0xc8]
call fcn.00633930
xor esi, esi
jmp 0x631d13