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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x4b9170]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
lea edx, [esp + 0x148]
xor eax, ebp
xor ecx, ecx
dec ecx
mov dword [esp + 0x208], eax
mov dword [edx + 4], ecx
mov dword [edx], ecx
push edx
call fcn.00431fd0
add esp, 4
push 0x34
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.00430550
add esp, 8
test eax, eax
jle 0x403017
lea esi, [esp + 0xa0]
mov ecx, esi
push 0xffffffffffffffff
push 0x60
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.004305b0
lea eax, [esp + 0xa8]
push 0xc
push str.Start_bsdiff
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, esi
call fcn.004309c0
mov eax, dword [ebx + 4]
lea esi, [esp + 0x164]
mov dword [esp + 0x68], eax
push 0xa4
push 0xff
push esi
call fcn.0047b380
add esp, 0xc
mov ecx, esi
call fcn.0040dbb6
mov eax, dword [esi]
mov ecx, 4
lea ebx, [esp + 0x178]
add esi, ecx
test eax, eax
cmove esi, eax
xor edx, edx
cmp eax, 1
cmovbe ebx, edx
cmp eax, 2
mov dword [esp + 0x70], ebx
lea ebx, [esp + 0x188]
cmovbe ebx, edx
cmp eax, 3
mov dword [esp + 0x6c], ebx
lea ebx, [esp + 0x198]
cmovbe ebx, edx
cmp eax, ecx
lea ecx, [esp + 0x1a8]
cmovbe ecx, edx
cmp eax, 5
mov eax, edi
mov edi, dword [edi + 4]
mov dword [esp + 0x60], ebx
lea ebx, [esp + 0x1b8]
mov eax, dword [eax + 8]
cmovbe ebx, edx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x94]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
sub edi, eax
mov dword [esp + 0x1c], eax
lea eax, [edi + 1]
mov dword [esp + 8], eax
push eax
call fcn.00403a28
test al, al
je 0x403738
xor ecx, ecx
lea eax, [esp + 0x88]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x64], esi
dec ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
push eax
call fcn.00431fd0
add esp, 4
mov dword [esp + 0x2c], edi
push edi
push 0
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x28]
call fcn.00404780
add esp, 0x10
mov edi, eax
push 0x34
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.00430550
add esp, 8
test eax, eax
jle 0x40319c
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
push 0x7b
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.004305b0
lea eax, [esp + 0xa8]
push 0x11
push str._done_divsufsort
push eax
call fcn.00403c50
add esp, 0xc
lea ebx, [esp + 0x80]
mov esi, eax
push ebx
call fcn.00431fd0
add esp, 4
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x150]
sub eax, dword [esp + 0x88]
sbb edx, dword [esp + 0x8c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00431e10
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0040fd10
lea ecx, [esp + 0xa0]
call fcn.004309c0
mov edx, dword [esp + 0x2c]
mov esi, 4
test edi, edi
lea ecx, [esp + 0x94]
jne 0x4039f8
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, esi
mov dword [esp + 0x38], edi
sub eax, edi
test eax, eax
mov dword [esp + 0x40], eax
jle 0x4037aa
xor ebx, ebx
xor esi, esi
mov dword [esp + 8], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
add ebx, esi
cmp eax, ebx
jle 0x403331
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 8]
mov edi, ebx
mov dword [esp + 4], 0
add eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
sub eax, edi
add esi, edi
push eax
mov dword [esp + 0x28], esi
push esi
push edx
push dword [esp + 0x28]
push ecx
lea eax, [esp + 0xb4]
push eax
call fcn.00403ac8
add esp, 0x18
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
lea eax, [edi + ecx]
mov dword [esp + 0x34], ecx
cmp ebx, eax
jge 0x4032bc
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, ebx
cmp ecx, edx
jge 0x4032af
mov ecx, dword [esp + 0xc]
mov edi, esi
mov esi, dword [esp + 0x38]
xor edx, edx
mov cl, byte [ecx + ebx]
cmp cl, byte [esi + ebx]
mov esi, edi
sete dl
add esi, edx
mov edx, dword [esp + 0x2c]
inc ebx
cmp ebx, eax
jl 0x403288
mov ecx, dword [esp + 0x34]
mov ebx, eax
jmp 0x4032c4
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 4]
cmp esi, ecx
mov edi, ecx
sete al
test ecx, ecx
setne cl
test cl, al
jne 0x40335a
lea eax, [esi + 8]
cmp eax, edi
jl 0x40335a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov dword [esp + 4], esi
add eax, ecx
cmp eax, edx
jge 0x40330d
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
mov al, byte [ecx + eax]
xor ecx, ecx
cmp al, byte [edi]
sete cl
sub dword [esp + 4], ecx
jmp 0x403311
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x94]
inc edi
cmp eax, edi
jg 0x40323b
mov ebx, edi
mov edi, dword [esp + 0x18]
jmp 0x40333b
xor edi, edi
mov dword [esp + 4], 0
cmp eax, ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], esi
je 0x403435
cmp esi, dword [esp + 4]
je 0x403373
jmp 0x403435
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x94]
cmp eax, ebx
je 0x403380
cmp esi, dword [esp + 0x34]
jne 0x403380
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
jmp 0x40371d
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
jle 0x40342b
cmp ebx, dword [esp + 0x14]
jle 0x40342b
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], 0
add eax, ecx
xor ecx, ecx
dec ecx
xor edx, edx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x30], eax
inc edx
mov eax, dword [esp + 0x30]
mov esi, ecx
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 0x20], edx
mov al, byte [eax + ecx]
mov byte [esp + 4], al
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 4]
cmp cl, byte [eax + esi]
mov ecx, esi
sete bl
add ebx, dword [esp + 0xc]
lea eax, [esi + ebx*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
add eax, eax
sub eax, edi
cmp dword [esp + 0xc], eax
mov eax, ebx
jg 0x403407
mov eax, dword [esp + 8]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
jge 0x403431
mov esi, dword [esp + 0x14]
dec ecx
mov edi, dword [esp + 0x20]
mov dword [esp + 8], eax
lea esi, [esi + edx + 1]
inc edx
cmp dword [esp + 0x10], esi
jge 0x4033bd
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
jmp 0x403435
mov ebx, dword [esp + 0x10]
xor ecx, ecx
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
jle 0x403509
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], 0
add eax, edx
mov esi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
cmovge eax, ecx
sub edx, dword [esp + 0x10]
sub esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
xor esi, esi
xor edi, edi
dec edi
xor ebx, ebx
inc ebx
mov dword [esp + 0x5c], edx
add eax, ecx
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
add eax, ebx
cmp eax, 1
je 0x403505
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov al, byte [eax + ebx - 1]
mov byte [esp + 4], al
mov eax, esi
mov esi, dword [esp + 0x30]
mov dl, byte [esp + 4]
mov dword [esp + 4], eax
cmp dl, byte [esi + ebx - 1]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 8]
sete cl
add esi, ecx
lea ecx, [edi + esi*2]
mov dword [esp + 0xc], ecx
lea ecx, [eax + eax]
mov eax, esi
sub ecx, edx
cmp dword [esp + 0xc], ecx
mov ecx, ebx
mov dword [esp + 0xc], esi
jg 0x4034ec
mov eax, dword [esp + 4]
mov ecx, edx
mov edx, ecx
mov ecx, dword [esp + 0x5c]
mov esi, eax
dec edi
mov eax, edx
lea ecx, [ecx + ebx + 1]
inc ebx
cmp ecx, 1
mov ecx, edx
jne 0x403490
jmp 0x403509
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub esi, dword [esp + 0x20]
lea edx, [ecx + eax]
cmp edx, esi
mov dword [esp + 0x24], esi
jle 0x4035ba
sub edx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 0x30], edx
jle 0x4035c2
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], 0
add ecx, eax
sub esi, dword [esp + 0x20]
sub ecx, edx
mov edx, dword [esp + 0x1c]
add ecx, edx
add esi, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], esi
xor esi, esi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
xor edx, edx
mov cl, byte [ecx + ebx]
mov byte [esp + 8], cl
mov ecx, dword [esp + 0x5c]
mov al, byte [esp + 8]
cmp al, byte [ecx + ebx]
mov al, byte [esp + 8]
sete dl
xor ecx, ecx
add edx, esi
mov esi, dword [esp + 0x58]
cmp al, byte [esi + ebx]
mov eax, dword [esp + 0xc]
sete cl
inc ebx
sub edx, ecx
cmp edx, edi
mov esi, edx
cmovg eax, ebx
cmovg edi, edx
cmp ebx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
jl 0x403570
jmp 0x4035ca
mov eax, dword [esp + 0x1c]
mov edx, ecx
jmp 0x4035e0
mov dword [esp + 0xc], 0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
sub edx, dword [esp + 0x30]
sub dword [esp + 0x20], eax
add edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
test edx, edx
mov dword [esp + 4], edx
jle 0x40365d
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
xor ebx, ebx
add esi, edx
mov edx, dword [esp + 0x28]
lea edi, [eax + edx]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0xa0], 0xff
mov al, byte [esi + ebx]
sub al, byte [edi + ebx]
mov byte [esp + 0xa0], al
je 0x403653
mov ecx, dword [esp + 0x60]
push edx
call fcn.0040d7fc
test al, al
je 0x4039ef
mov ecx, dword [esp + 0x74]
push 1
lea eax, [esp + 0xa4]
push eax
call fcn.0040d76c
test al, al
je 0x4039ef
inc dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
xor edx, edx
jmp 0x403654
inc edx
inc ebx
cmp dword [esp + 4], ebx
jne 0x403603
jmp 0x403661
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
sub esi, dword [esp + 0x20]
add eax, dword [esp + 4]
mov dword [esp + 0xc], esi
sub esi, eax
jle 0x4036a1
mov edi, eax
xor ebx, ebx
add edi, dword [esp + 0x38]
lea eax, [edi + ebx]
push 1
push eax
call fcn.0040d76c
test al, al
je 0x4039ef
mov ecx, dword [esp + 0x44]
inc ebx
cmp ebx, esi
jl 0x403685
mov ecx, dword [esp + 0x64]
push dword [esp + 4]
call fcn.0040d7fc
test al, al
je 0x4039ef
mov ecx, dword [esp + 0x70]
push esi
call fcn.0040d7fc
test al, al
je 0x4039ef
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
add ecx, dword [esp + 4]
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x6c]
push eax
call fcn.0040d86a
mov ebx, dword [esp + 0x10]
test al, al
je 0x4039ef
mov eax, dword [esp + 4]
add dword [esp + 0x50], esi
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
inc dword [esp + 0x48]
lea ecx, [esp + 0x94]
add dword [esp + 0x4c], eax
mov eax, edi
sub eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], edi
mov edi, esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
cmp ebx, eax
jl 0x403215
jmp 0x4037d2
mov ebx, dword [esp + 8]
xor esi, esi
inc esi
push 2
call fcn.00430520
add esp, 4
test al, al
je 0x4039f8
mov edi, esi
lea esi, [esp + 0xa0]
mov ecx, esi
push 2
push 0x73
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.004305b0
lea eax, [esp + 0xa8]
push 0x18
push str.Could_not_allocate_I___
push eax
call fcn.00403c50
add esp, 0xc
shl ebx, 2
mov ecx, eax
push ebx
call fcn.0040f910
push 6
push str._bytes
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, esi
mov esi, edi
call fcn.004309c0
jmp 0x4039f8
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x60]
push dword [esp + 0x3c]
call fcn.0040d7fc
test al, al
je 0x4039ef
lea ecx, [esp + 0x94]
call fcn.00403c02
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x150]
mov dword [esi + 4], 0x32344649
mov dword [esi], 0x44534247
mov dword [esi + 8], eax
push eax
push dword [esp + 0x20]
call fcn.0040d3f0
add esp, 8
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, 8
mov ecx, edi
push eax
push esi
call fcn.0040d76c
mov ecx, edi
mov byte [esp + 8], al
push dword [esi + 8]
call fcn.0040d7fc
mov ebx, eax
mov ecx, edi
push dword [esi + 0xc]
call fcn.0040d7fc
mov bh, al
mov ecx, edi
push dword [esi + 0x10]
call fcn.0040d7fc
xor ecx, ecx
inc ecx
cmp byte [esp + 8], 0
je 0x4039f4
test bl, bl
je 0x4039f4
test bh, bh
je 0x4039f4
test al, al
je 0x4039f4
mov eax, dword [esp + 0x60]
mov ebx, ecx
lea ecx, [esp + 0x164]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040dc90
test al, al
je 0x4039f6
push 0x34
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.00430550
add esp, 8
test eax, eax
jle 0x4039eb
lea ebx, [esp + 0xa0]
mov ecx, ebx
push 0xffffffffffffffff
push 0x152
push str..._.._courgette_third_party_bsdiff_bsdiff_create.cc
call fcn.004305b0
lea eax, [esp + 0xa8]
push 0x10
push str.Control_tuples:
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, eax
push dword [esp + 0x48]
call fcn.0040f710
push 0xe
push str.__copy_bytes:
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, eax
push dword [esp + 0x4c]
call fcn.0040f710
mov edi, 0xc
push edi
push str.__mistakes:
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, eax
push dword [esp + 0x54]
call fcn.0040f710
push 0xa
push str.___skips:
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, eax
push esi
call fcn.0040f910
push 1
push 0x49e559
push eax
call fcn.00403c50
add esp, 0xc
push 0xf
push str.__extra_bytes:
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, eax
push dword [esp + 0x50]
call fcn.0040f710
push 0x20
push str._nUncompressed_bsdiff_patch_size
push eax
call fcn.00403c50
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, eax
sub edx, dword [esp + 0x68]
push edx
call fcn.0040f910
push edi
push str._nEnd_bsdiff
push eax
call fcn.00403c50
add esp, 0xc
lea esi, [esp + 0x78]
mov edi, eax
push esi
call fcn.00431fd0
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x80]
sub eax, dword [esp + 0x148]
sbb edx, dword [esp + 0x14c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00431e10
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.0040fd10
mov ecx, ebx
call fcn.004309c0
xor ebx, ebx
jmp 0x4039f6
xor esi, esi
inc esi
jmp 0x4039f8
mov ebx, ecx
mov esi, ebx
lea ecx, [esp + 0x94]
call fcn.00403c02
lea ecx, [esp + 0x164]
call fcn.0040dbe0
mov ecx, dword [esp + 0x208]
xor ecx, ebp
call fcn.004771d1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret